pub struct ClosureObj {
pub func: Option<FunctionKey>,
pub uvs: Option<HashMap<usize, UpValue>>,
pub recv: Option<GosValue>,
pub ffi: Option<Box<FfiClosureObj>>,
pub meta: GosMetadata,
}
Fields§
§func: Option<FunctionKey>
§uvs: Option<HashMap<usize, UpValue>>
§recv: Option<GosValue>
§ffi: Option<Box<FfiClosureObj>>
§meta: GosMetadata
Implementations§
Source§impl ClosureObj
impl ClosureObj
pub fn new_gos( key: FunctionKey, fobjs: &FunctionObjs, recv: Option<GosValue>, ) -> ClosureObj
pub fn new_ffi(ffi: FfiClosureObj) -> ClosureObj
Sourcepub fn ref_sub_one(&self)
pub fn ref_sub_one(&self)
for gc
Sourcepub fn mark_dirty(&self, queue: &mut RCQueue)
pub fn mark_dirty(&self, queue: &mut RCQueue)
for gc
Trait Implementations§
Source§impl Clone for ClosureObj
impl Clone for ClosureObj
Source§fn clone(&self) -> ClosureObj
fn clone(&self) -> ClosureObj
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ClosureObj
impl !RefUnwindSafe for ClosureObj
impl !Send for ClosureObj
impl !Sync for ClosureObj
impl Unpin for ClosureObj
impl !UnwindSafe for ClosureObj
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