pub enum VarResolution {
Local {
slot: u16,
},
Upvalue {
index: u16,
},
Global {
spur: Spur,
},
}Expand description
How a variable reference was resolved by the resolver pass.
Variants§
Local
Local variable in the current function frame.
Upvalue
Captured variable from an enclosing function scope.
Global
Module-level / global binding.
Trait Implementations§
Source§impl Clone for VarResolution
impl Clone for VarResolution
Source§fn clone(&self) -> VarResolution
fn clone(&self) -> VarResolution
Returns a duplicate 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 VarResolution
impl Debug for VarResolution
Source§impl PartialEq for VarResolution
impl PartialEq for VarResolution
impl Copy for VarResolution
impl Eq for VarResolution
impl StructuralPartialEq for VarResolution
Auto Trait Implementations§
impl Freeze for VarResolution
impl RefUnwindSafe for VarResolution
impl Send for VarResolution
impl Sync for VarResolution
impl Unpin for VarResolution
impl UnsafeUnpin for VarResolution
impl UnwindSafe for VarResolution
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.