#[repr(align(8))]pub struct Closure {
pub name: Rc<str>,
pub function_id: FunctionIndex,
pub captures: Vec<Pin<Rc<Upvalue>>>,
}
Expand description
The runtime representation of a function.
Fields
name: Rc<str>
function_id: FunctionIndex
captures: Vec<Pin<Rc<Upvalue>>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Closure
impl !Send for Closure
impl !Sync for Closure
impl Unpin for Closure
impl !UnwindSafe for Closure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more