Enum wasm_encoder::ExportKind
source · #[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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)