pub struct Position(pub u64);
Expand description
Position is used to represent where to capture an upvalue from.
Tuple Fields§
§0: u64
Implementations§
source§impl Position
impl Position
pub fn stack_index(idx: StackIdx) -> Self
pub fn deferred_local(idx: StackIdx) -> Self
pub fn upvalue_index(idx: UpvalueIdx) -> Self
pub fn runtime_stack_index(&self) -> Option<StackIdx>
pub fn runtime_deferred_local(&self) -> Option<StackIdx>
pub fn runtime_upvalue_index(&self) -> Option<UpvalueIdx>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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