pub struct Closure {
pub function_id: u16,
pub captured_env: CapturedEnvironment,
}Expand description
A closure captures a function definition along with its environment
Fields§
§function_id: u16The function ID (bytecode index)
captured_env: CapturedEnvironmentCaptured environment (variable bindings from enclosing scope)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Closure
impl RefUnwindSafe for Closure
impl Send for Closure
impl Sync for Closure
impl Unpin for Closure
impl UnsafeUnpin for Closure
impl UnwindSafe for Closure
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