pub struct UpvalDesc {
pub name: String,
pub in_stack: bool,
pub index: u16,
}Expand description
How an upvalue is captured by a closure.
Fields§
§name: String§in_stack: boolIf true, the upvalue is a local slot in the immediately enclosing scope; otherwise it is an upvalue of the enclosing function.
index: u16Trait Implementations§
Auto Trait Implementations§
impl Freeze for UpvalDesc
impl RefUnwindSafe for UpvalDesc
impl Send for UpvalDesc
impl Sync for UpvalDesc
impl Unpin for UpvalDesc
impl UnsafeUnpin for UpvalDesc
impl UnwindSafe for UpvalDesc
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