Struct go_engine::ffi::types::FunctionObj   
source · pub struct FunctionObj {
    pub package: PackageKey,
    pub meta: Meta,
    pub flag: FuncFlag,
    pub param_count: i32,
    pub max_write_index: i32,
    pub ret_zeros: Vec<GosValue, Global>,
    pub code: Vec<Instruction, Global>,
    pub pos: Vec<Option<u32>, Global>,
    pub up_ptrs: Vec<ValueDesc, Global>,
    pub local_zeros: Vec<GosValue, Global>,
}Expand description
FunctionObj is the direct container of the Opcode.
Fields§
§package: PackageKey§meta: Meta§flag: FuncFlag§param_count: i32§max_write_index: i32§ret_zeros: Vec<GosValue, Global>§code: Vec<Instruction, Global>§pos: Vec<Option<u32>, Global>§up_ptrs: Vec<ValueDesc, Global>§local_zeros: Vec<GosValue, Global>Implementations§
source§impl FunctionObj
 
impl FunctionObj
pub fn new( package: PackageKey, meta: Meta, metas: &PiggyVec<MetadataKey, MetadataType>, gcc: &GcContainer, flag: FuncFlag ) -> FunctionObj
pub fn param_count(&self) -> i32
pub fn local_count(&self) -> i32
pub fn ret_count(&self) -> i32
pub fn is_ctor(&self) -> bool
Trait Implementations§
source§impl Clone for FunctionObj
 
impl Clone for FunctionObj
source§fn clone(&self) -> FunctionObj
 
fn clone(&self) -> FunctionObj
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