pub enum Statement {
Assign {
place: Place,
rvalue: Rvalue,
span: Span,
},
StorageLive {
local: Local,
span: Span,
},
StorageDead {
local: Local,
span: Span,
},
Nop,
}Expand description
Statement - a side-effecting operation that doesn’t transfer control
Variants§
Assign
Assignment: place = rvalue
StorageLive
Mark a local as “live” (storage allocated)
StorageDead
Mark a local as “dead” (storage can be freed)
Nop
No-op (used for alignment or as placeholder)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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