Enum go_vm::types::ClosureObj
source · 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: &FunctionObjs, 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 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 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 more