Enum walrus::ExportItem
source · pub enum ExportItem {
Function(FunctionId),
Table(TableId),
Memory(MemoryId),
Global(GlobalId),
}
Expand description
An exported item.
Variants§
Function(FunctionId)
An exported function.
Table(TableId)
An exported table.
Memory(MemoryId)
An exported memory.
Global(GlobalId)
An exported global.
Trait Implementations§
source§impl Clone for ExportItem
impl Clone for ExportItem
source§fn clone(&self) -> ExportItem
fn clone(&self) -> ExportItem
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 ExportItem
impl Debug for ExportItem
source§impl From<Id<Function>> for ExportItem
impl From<Id<Function>> for ExportItem
source§fn from(id: FunctionId) -> ExportItem
fn from(id: FunctionId) -> ExportItem
Converts to this type from the input type.
source§impl From<Id<Global>> for ExportItem
impl From<Id<Global>> for ExportItem
source§fn from(id: GlobalId) -> ExportItem
fn from(id: GlobalId) -> ExportItem
Converts to this type from the input type.
source§impl From<Id<Memory>> for ExportItem
impl From<Id<Memory>> for ExportItem
source§fn from(id: MemoryId) -> ExportItem
fn from(id: MemoryId) -> ExportItem
Converts to this type from the input type.
source§impl From<Id<Table>> for ExportItem
impl From<Id<Table>> for ExportItem
source§fn from(id: TableId) -> ExportItem
fn from(id: TableId) -> ExportItem
Converts to this type from the input type.
impl Copy for ExportItem
Auto Trait Implementations§
impl RefUnwindSafe for ExportItem
impl Send for ExportItem
impl Sync for ExportItem
impl Unpin for ExportItem
impl UnwindSafe for ExportItem
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