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§
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§
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