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
Fields
import: InlineImport<'a>
Where this core module is imported from
ty: CoreTypeUse<'a, ModuleType<'a>>
The type that this core module will have.
A core module which is actually defined as an import
Inline
Fields
fields: Vec<ModuleField<'a>>
Fields in the core module.
Modules that are defined inline.
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more