Enum stable_mir::mir::body::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§impl Serialize for StatementKind
impl Serialize for StatementKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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: 360 bytes
Size for each variant:
Assign
: 288 bytesFakeRead
: 72 bytesSetDiscriminant
: 48 bytesDeinit
: 40 bytesStorageLive
: 16 bytesStorageDead
: 16 bytesRetag
: 48 bytesPlaceMention
: 40 bytesAscribeUserType
: 80 bytesCoverage
: 32 bytesIntrinsic
: 360 bytesConstEvalCounter
: 0 bytesNop
: 0 bytes