Enum wast::component::CoreModuleKind
source · pub enum CoreModuleKind<'a> {
Import {
import: InlineImport<'a>,
ty: CoreTypeUse<'a, ModuleType<'a>>,
},
Inline {
fields: Vec<ModuleField<'a>>,
},
}
Expand description
Possible ways to define a core module in the text format.
Variants§
Import
A core module which is actually defined as an import
Fields
§
import: InlineImport<'a>
Where this core module is imported from
§
ty: CoreTypeUse<'a, ModuleType<'a>>
The type that this core module will have.
Inline
Modules that are defined inline.
Fields
§
fields: Vec<ModuleField<'a>>
Fields in the core module.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CoreModuleKind<'a>
impl<'a> RefUnwindSafe for CoreModuleKind<'a>
impl<'a> Send for CoreModuleKind<'a>
impl<'a> Sync for CoreModuleKind<'a>
impl<'a> Unpin for CoreModuleKind<'a>
impl<'a> UnwindSafe for CoreModuleKind<'a>
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