pub enum UpvalueDesc {
ParentLocal(u16),
ParentUpvalue(u16),
}Expand description
Describes how an upvalue is captured relative to the immediately enclosing function.
Variants§
ParentLocal(u16)
Capture from the parent function’s local slot.
ParentUpvalue(u16)
Capture from the parent function’s upvalue slot.
Trait Implementations§
Source§impl Clone for UpvalueDesc
impl Clone for UpvalueDesc
Source§fn clone(&self) -> UpvalueDesc
fn clone(&self) -> UpvalueDesc
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 UpvalueDesc
impl Debug for UpvalueDesc
impl Copy for UpvalueDesc
Auto Trait Implementations§
impl Freeze for UpvalueDesc
impl RefUnwindSafe for UpvalueDesc
impl Send for UpvalueDesc
impl Sync for UpvalueDesc
impl Unpin for UpvalueDesc
impl UnsafeUnpin for UpvalueDesc
impl UnwindSafe for UpvalueDesc
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