Struct go_vm::CodeGenVMCtx
source · pub struct CodeGenVMCtx { /* private fields */ }
Expand description
Used by CodeGen, so that CodeGen can share the API provided by FFI
Implementations§
source§impl CodeGenVMCtx
impl CodeGenVMCtx
pub fn new(vm_objs: VMObjects) -> CodeGenVMCtx
pub fn ffi_ctx(&mut self) -> FfiCtx<'_>
pub fn objects(&self) -> &VMObjects
pub fn objects_mut(&mut self) -> &mut VMObjects
pub fn metas(&self) -> &MetadataObjs
pub fn metas_mut(&mut self) -> &mut MetadataObjs
pub fn functions(&self) -> &FunctionObjs
pub fn functions_mut(&mut self) -> &mut FunctionObjs
pub fn packages(&self) -> &PackageObjs
pub fn packages_mut(&mut self) -> &mut PackageObjs
pub fn prim_meta(&self) -> &PrimitiveMeta
pub fn gc_container(&self) -> &GcContainer
pub fn into_vmo(self) -> VMObjects
pub fn function_with_meta( &mut self, package: Option<PackageKey>, meta: Meta, flag: FuncFlag ) -> GosValue
pub fn new_struct_meta(&mut self, fields: Fields) -> Meta
pub fn new_closure_static( func: FunctionKey, up_ptrs: Option<&Vec<ValueDesc>>, meta: Meta ) -> GosValue
Auto Trait Implementations§
impl !RefUnwindSafe for CodeGenVMCtx
impl !Send for CodeGenVMCtx
impl !Sync for CodeGenVMCtx
impl Unpin for CodeGenVMCtx
impl !UnwindSafe for CodeGenVMCtx
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