Enum rustc_middle::mir::visit::PlaceContext [−][src]
pub enum PlaceContext {
NonMutatingUse(NonMutatingUseContext),
MutatingUse(MutatingUseContext),
NonUse(NonUseContext),
}
Variants
NonMutatingUse(NonMutatingUseContext)
Tuple Fields of NonMutatingUse
MutatingUse(MutatingUseContext)
Tuple Fields of MutatingUse
NonUse(NonUseContext)
Tuple Fields of NonUse
Implementations
Returns true
if this place context represents a storage live or storage dead marker.
Returns true
if this place context represents a use that potentially changes the value.
Returns true
if this place context represents an assignment statement.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PlaceContext
impl Send for PlaceContext
impl Sync for PlaceContext
impl Unpin for PlaceContext
impl UnwindSafe for PlaceContext
Blanket Implementations
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: 2 bytes
Size for each variant:
NonMutatingUse
: 1 byteMutatingUse
: 1 byteNonUse
: 1 byte