Enum stable_mir::mir::StatementKind
source · pub enum StatementKind {
Show 13 variants
Assign(Place, Rvalue),
FakeRead(FakeReadCause, Place),
SetDiscriminant {
place: Place,
variant_index: VariantIdx,
},
Deinit(Place),
StorageLive(Local),
StorageDead(Local),
Retag(RetagKind, Place),
PlaceMention(Place),
AscribeUserType {
place: Place,
projections: UserTypeProjection,
variance: Variance,
},
Coverage(Opaque),
Intrinsic(NonDivergingIntrinsic),
ConstEvalCounter,
Nop,
}
Variants§
Assign(Place, Rvalue)
FakeRead(FakeReadCause, Place)
SetDiscriminant
Deinit(Place)
StorageLive(Local)
StorageDead(Local)
Retag(RetagKind, Place)
PlaceMention(Place)
AscribeUserType
Coverage(Opaque)
Intrinsic(NonDivergingIntrinsic)
ConstEvalCounter
Nop
Trait Implementations§
source§impl Clone for StatementKind
impl Clone for StatementKind
source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StatementKind
impl Debug for StatementKind
source§impl PartialEq for StatementKind
impl PartialEq for StatementKind
source§fn eq(&self, other: &StatementKind) -> bool
fn eq(&self, other: &StatementKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StatementKind
impl StructuralPartialEq for StatementKind
Auto Trait Implementations§
impl Freeze for StatementKind
impl RefUnwindSafe for StatementKind
impl Send for StatementKind
impl Sync for StatementKind
impl Unpin for StatementKind
impl UnwindSafe for StatementKind
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: 312 bytes
Size for each variant:
Assign
: 256 bytesFakeRead
: 72 bytesSetDiscriminant
: 48 bytesDeinit
: 40 bytesStorageLive
: 16 bytesStorageDead
: 16 bytesRetag
: 48 bytesPlaceMention
: 40 bytesAscribeUserType
: 80 bytesCoverage
: 32 bytesIntrinsic
: 312 bytesConstEvalCounter
: 0 bytesNop
: 0 bytes