pub struct ImportBacking { /* private fields */ }Expand description
The ImportBacking stores references to the imported resources of an Instance. This includes
imported memories, tables, globals and functions.
Implementations§
Source§impl ImportBacking
impl ImportBacking
Sourcepub fn new(
module: &ModuleInner,
imports: &ImportObject,
vmctx: *mut Ctx,
) -> LinkResult<Self>
pub fn new( module: &ModuleInner, imports: &ImportObject, vmctx: *mut Ctx, ) -> LinkResult<Self>
Creates a new ImportBacking from the given ModuleInner, ImportObject, and Ctx.
Sourcepub fn imported_func(&self, index: ImportedFuncIndex) -> ImportedFunc
pub fn imported_func(&self, index: ImportedFuncIndex) -> ImportedFunc
Gets a ImportedFunc from the given ImportedFuncIndex.
Trait Implementations§
Source§impl Debug for ImportBacking
impl Debug for ImportBacking
Source§impl Drop for ImportBacking
impl Drop for ImportBacking
impl Send for ImportBacking
Auto Trait Implementations§
impl Freeze for ImportBacking
impl !RefUnwindSafe for ImportBacking
impl !Sync for ImportBacking
impl Unpin for ImportBacking
impl !UnwindSafe for ImportBacking
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