pub struct MirLocal {
pub slot: LocalId,
pub last_use: bool,
pub name: String,
}Expand description
Local-read with last-use annotation. Phase 6 wave 4. Slot is
the binding identity; last_use = true when this is the
final read of that slot in the enclosing fn body, mirroring
HIR’s AnnotBool last-use stamp.
Phase 5 prep: name carries the source-level binding name
(param name, let binding name, pattern binding name). VM
backends ignore it (dispatch by slot). Rust / wasm-gc
backends use it as the emitted Rust ident / export name.
Empty for synthetic locals.
Fields§
§slot: LocalId§last_use: bool§name: StringImplementations§
Trait Implementations§
impl Eq for MirLocal
impl StructuralPartialEq for MirLocal
Auto Trait Implementations§
impl Freeze for MirLocal
impl RefUnwindSafe for MirLocal
impl Send for MirLocal
impl Sync for MirLocal
impl Unpin for MirLocal
impl UnsafeUnpin for MirLocal
impl UnwindSafe for MirLocal
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.