pub enum ClosureObj {
Gos(GosClosureObj),
Ffi(FfiClosureObj),
}
Variants§
Gos(GosClosureObj)
Ffi(FfiClosureObj)
Implementations§
Source§impl ClosureObj
impl ClosureObj
pub fn new_gos( func: FunctionKey, up_ptrs: Option<&Vec<ValueDesc>>, recv: Option<GosValue>, meta: Meta, ) -> ClosureObj
pub fn gos_from_func( func: FunctionKey, fobjs: &PiggyVec<FunctionKey, FunctionObj>, recv: Option<GosValue>, ) -> ClosureObj
pub fn new_ffi(ffi: FfiClosureObj) -> ClosureObj
pub fn as_gos(&self) -> &GosClosureObj
Sourcepub fn ref_sub_one(&self)
pub fn ref_sub_one(&self)
for gc
Sourcepub fn mark_dirty(&self, queue: &mut VecDeque<i32>)
pub fn mark_dirty(&self, queue: &mut VecDeque<i32>)
for gc
Trait Implementations§
Source§impl Clone for ClosureObj
impl Clone for ClosureObj
Source§fn clone(&self) -> ClosureObj
fn clone(&self) -> ClosureObj
Returns a copy 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