#[repr(u8)]pub enum ExportKind {
Func = 0,
Table = 1,
Memory = 2,
Global = 3,
Tag = 4,
}
Expand description
Represents the kind of an export from a WebAssembly module.
Variants§
Func = 0
The export is a function.
Table = 1
The export is a table.
Memory = 2
The export is a memory.
Global = 3
The export is a global.
Tag = 4
The export is a tag.
Trait Implementations§
Source§impl Clone for ExportKind
impl Clone for ExportKind
Source§fn clone(&self) -> ExportKind
fn clone(&self) -> ExportKind
Returns a copy of the value. Read more
1.0.0 · 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 ExportKind
impl Debug for ExportKind
Source§impl Encode for ExportKind
impl Encode for ExportKind
Source§impl From<ExternalKind> for ExportKind
Available on crate feature wasmparser
only.
impl From<ExternalKind> for ExportKind
Available on crate feature
wasmparser
only.Source§fn from(external_kind: ExternalKind) -> Self
fn from(external_kind: ExternalKind) -> Self
Converts to this type from the input type.
Source§impl Hash for ExportKind
impl Hash for ExportKind
Source§impl PartialEq for ExportKind
impl PartialEq for ExportKind
impl Copy for ExportKind
impl Eq for ExportKind
impl StructuralPartialEq for ExportKind
Auto Trait Implementations§
impl Freeze for ExportKind
impl RefUnwindSafe for ExportKind
impl Send for ExportKind
impl Sync for ExportKind
impl Unpin for ExportKind
impl UnwindSafe for ExportKind
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