pub struct ClosureObject {
pub function: FunctionHandle,
pub upvalue_count: usize,
pub inline_upvalues: [UpvalueSlot; 4],
pub overflow_handle: Option<OverflowHandle>,
pub module_context: Option<HashMapHandle>,
pub is_marked: bool,
}Fields§
§function: FunctionHandle§upvalue_count: usize§inline_upvalues: [UpvalueSlot; 4]§overflow_handle: Option<OverflowHandle>§module_context: Option<HashMapHandle>§is_marked: boolImplementations§
Source§impl ClosureObject
impl ClosureObject
pub fn new( function: FunctionHandle, upvalue_count: usize, module_context: Option<HashMapHandle>, ) -> Self
Trait Implementations§
Source§impl Clone for ClosureObject
impl Clone for ClosureObject
Source§impl Debug for ClosureObject
impl Debug for ClosureObject
Source§impl PartialEq for ClosureObject
impl PartialEq for ClosureObject
impl StructuralPartialEq for ClosureObject
Auto Trait Implementations§
impl Freeze for ClosureObject
impl RefUnwindSafe for ClosureObject
impl Send for ClosureObject
impl Sync for ClosureObject
impl Unpin for ClosureObject
impl UnsafeUnpin for ClosureObject
impl UnwindSafe for ClosureObject
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