pub enum Export {
Function(ExportFunction),
Table(ExportTable),
Memory(ExportMemory),
Global(ExportGlobal),
}
Expand description
The value of an export passed from one instance to another.
Variants§
Function(ExportFunction)
A function export value.
Table(ExportTable)
A table export value.
Memory(ExportMemory)
A memory export value.
Global(ExportGlobal)
A global export value.
Trait Implementations§
Source§impl From<ExportFunction> for Export
impl From<ExportFunction> for Export
Source§fn from(func: ExportFunction) -> Export
fn from(func: ExportFunction) -> Export
Converts to this type from the input type.
Source§impl From<ExportGlobal> for Export
impl From<ExportGlobal> for Export
Source§fn from(func: ExportGlobal) -> Export
fn from(func: ExportGlobal) -> Export
Converts to this type from the input type.
Source§impl From<ExportMemory> for Export
impl From<ExportMemory> for Export
Source§fn from(func: ExportMemory) -> Export
fn from(func: ExportMemory) -> Export
Converts to this type from the input type.
Source§impl From<ExportTable> for Export
impl From<ExportTable> for Export
Source§fn from(func: ExportTable) -> Export
fn from(func: ExportTable) -> Export
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Export
impl RefUnwindSafe for Export
impl !Send for Export
impl !Sync for Export
impl Unpin for Export
impl UnwindSafe for Export
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more