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 PartialEq for ExportKind
impl PartialEq for ExportKind
source§fn eq(&self, other: &ExportKind) -> bool
fn eq(&self, other: &ExportKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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