pub struct ModuleExport { /* private fields */ }Expand description
Module export metadata.
Implementations§
Source§impl ModuleExport
impl ModuleExport
Sourcepub fn new(
name: impl AsRef<str>,
kind: ModuleItemKind,
) -> Result<Self, WasmModuleError>
pub fn new( name: impl AsRef<str>, kind: ModuleItemKind, ) -> Result<Self, WasmModuleError>
Creates module export metadata.
Sourcepub const fn kind(&self) -> ModuleItemKind
pub const fn kind(&self) -> ModuleItemKind
Returns the exported item kind.
Trait Implementations§
Source§impl Clone for ModuleExport
impl Clone for ModuleExport
Source§fn clone(&self) -> ModuleExport
fn clone(&self) -> ModuleExport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleExport
impl Debug for ModuleExport
Source§impl Hash for ModuleExport
impl Hash for ModuleExport
Source§impl PartialEq for ModuleExport
impl PartialEq for ModuleExport
Source§fn eq(&self, other: &ModuleExport) -> bool
fn eq(&self, other: &ModuleExport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleExport
impl StructuralPartialEq for ModuleExport
Auto Trait Implementations§
impl Freeze for ModuleExport
impl RefUnwindSafe for ModuleExport
impl Send for ModuleExport
impl Sync for ModuleExport
impl Unpin for ModuleExport
impl UnsafeUnpin for ModuleExport
impl UnwindSafe for ModuleExport
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