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) -> &PiggyVec<MetadataKey, MetadataType>
pub fn metas_mut(&mut self) -> &mut PiggyVec<MetadataKey, MetadataType>
pub fn functions(&self) -> &PiggyVec<FunctionKey, FunctionObj>
pub fn functions_mut(&mut self) -> &mut PiggyVec<FunctionKey, FunctionObj>
pub fn packages(&self) -> &PiggyVec<PackageKey, PackageObj>
pub fn packages_mut(&mut self) -> &mut PiggyVec<PackageKey, PackageObj>
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 Freeze for CodeGenVMCtx
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