pub enum Capture {
None,
Register(u16),
Outer(u16),
Slot(u16),
}Expand description
Where a closure created by MakeClosure gets one captured cell, read in
the frame that runs the MakeClosure.
Variants§
None
A slot with no cell (a global the closure reads by name).
Register(u16)
The cell in this register of the creating frame.
Outer(u16)
The creating function’s own capture at this index.
Slot(u16)
The cell in this slot of the creating frame’s spill scope (a local past the register window).
Trait Implementations§
impl Copy for Capture
impl Eq for Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl Freeze for Capture
impl RefUnwindSafe for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capture
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