pub struct NopModule;Expand description
A no-operation WASM module.
Any call will return an error.
Trait Implementations§
Source§impl Linker<NopModule> for NopLinker
impl Linker<NopModule> for NopLinker
Source§fn import(
&mut self,
_ns: impl Into<String>,
_funcs: HashMap<String, ()>,
) -> Result<()>
fn import( &mut self, _ns: impl Into<String>, _funcs: HashMap<String, ()>, ) -> Result<()>
Import functions by namespace and names.
Source§fn wrap_raw(
&self,
_f: impl Fn(Self, i32, i32) -> Result<Vec<u8>> + Send + Sync + 'static,
)
fn wrap_raw( &self, _f: impl Fn(Self, i32, i32) -> Result<Vec<u8>> + Send + Sync + 'static, )
Wrap a function with args in bytes.
Source§impl<'a> LinkerHandle<'a, NopModule> for NopLinker
impl<'a> LinkerHandle<'a, NopModule> for NopLinker
Auto Trait Implementations§
impl Freeze for NopModule
impl RefUnwindSafe for NopModule
impl Send for NopModule
impl Sync for NopModule
impl Unpin for NopModule
impl UnwindSafe for NopModule
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