pub(crate) enum Category {
Place,
Constant,
Rvalue(RvalueFunc),
}
Variants§
Place
An assignable memory location like x
, x.f
, foo()[3]
, that
sort of thing. Something that could appear on the LHS of an =
sign.
Constant
A literal like 23
or "foo"
. Does not include constant
expressions like 3 + 5
.
Rvalue(RvalueFunc)
Something that generates a new value at runtime, like x + y
or foo()
.
Implementations§
Trait Implementations§
source§impl PartialEq<Category> for Category
impl PartialEq<Category> for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Place
: 0 bytesConstant
: 0 bytesRvalue
: 1 byte