pub enum WatModuleField {
Func(WatFunc),
Import(WatImport),
Export(WatExport),
Type(WatType),
Table(WatTable),
Memory(WatMemory),
Global(WatGlobal),
}Expand description
A field within a WebAssembly module.
Variants§
Func(WatFunc)
A function definition.
Import(WatImport)
An import definition.
Export(WatExport)
An export definition.
Type(WatType)
A type definition.
Table(WatTable)
A table definition.
Memory(WatMemory)
A memory definition.
Global(WatGlobal)
A global variable definition.
Trait Implementations§
Source§impl Clone for WatModuleField
impl Clone for WatModuleField
Source§fn clone(&self) -> WatModuleField
fn clone(&self) -> WatModuleField
Returns a duplicate 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 WatModuleField
impl Debug for WatModuleField
Source§impl ToSource for WatModuleField
impl ToSource for WatModuleField
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for WatModuleField
impl RefUnwindSafe for WatModuleField
impl Send for WatModuleField
impl Sync for WatModuleField
impl Unpin for WatModuleField
impl UnsafeUnpin for WatModuleField
impl UnwindSafe for WatModuleField
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