Enum wast::NestedModuleKind
source · [−]pub enum NestedModuleKind<'a> {
Import {
import: InlineImport<'a>,
ty: TypeUse<'a, ModuleType<'a>>,
},
Inline {
fields: Vec<ModuleField<'a>>,
},
}
Expand description
Possible ways to define a nested module in the text format.
Variants
Import
Fields
import: InlineImport<'a>
Where this nested module is imported from
ty: TypeUse<'a, ModuleType<'a>>
The type that this nested module will have.
An nested module which is actually defined as an import, such as:
Inline
Fields
fields: Vec<ModuleField<'a>>
Fields in the nested module.
Nested modules whose instantiation is defined inline.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for NestedModuleKind<'a>
impl<'a> Send for NestedModuleKind<'a>
impl<'a> Sync for NestedModuleKind<'a>
impl<'a> Unpin for NestedModuleKind<'a>
impl<'a> UnwindSafe for NestedModuleKind<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more