pub struct Module { /* private fields */ }Expand description
A Wasm module.
Implementations§
Source§impl Module
impl Module
Sourcepub fn imports(&self) -> ModuleImports<'_> ⓘ
pub fn imports(&self) -> ModuleImports<'_> ⓘ
Returns an iterator over the imports in this Module.
Sourcepub fn export<'a>(&'a self, name: &'a str) -> Option<ExternType>
pub fn export<'a>(&'a self, name: &'a str) -> Option<ExternType>
Returns the ExternType of the export with the given name in this Module, if it exists.
Sourcepub fn exports(&self) -> ModuleExports<'_> ⓘ
pub fn exports(&self) -> ModuleExports<'_> ⓘ
Returns an iterator over the exports in this Module.
Trait Implementations§
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