pub struct Module { /* private fields */ }
Expand description
A WASM module.
This type wraps a WebAssembly.Module
from the JavaScript API.
Trait Implementations§
Source§impl WasmModule<Engine> for Module
impl WasmModule<Engine> for Module
Source§fn new(_engine: &Engine, stream: impl Read) -> Result<Self>
fn new(_engine: &Engine, stream: impl Read) -> Result<Self>
Creates a new module from the given byte stream.
Source§fn exports(&self) -> Box<dyn Iterator<Item = ExportType<'_>> + '_>
fn exports(&self) -> Box<dyn Iterator<Item = ExportType<'_>> + '_>
Gets the export types of the module.
Source§fn get_export(&self, name: &str) -> Option<ExternType>
fn get_export(&self, name: &str) -> Option<ExternType>
Gets the export type of the given name, if any, from this module.
Auto Trait Implementations§
impl Freeze for Module
impl !RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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