Enum wast::component::NestedComponentKind
source · [−]pub enum NestedComponentKind<'a> {
Import {
import: InlineImport<'a>,
ty: ComponentTypeUse<'a, ComponentType<'a>>,
},
Inline(Vec<ComponentField<'a>>),
}
Expand description
The different kinds of ways to define a nested component.
Variants
Import
Fields
import: InlineImport<'a>
The information about where this is being imported from.
ty: ComponentTypeUse<'a, ComponentType<'a>>
The type of component being imported.
This is actually an inline import of a component
Inline(Vec<ComponentField<'a>>)
The component is defined inline as a local definition with its fields listed here.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for NestedComponentKind<'a>
impl<'a> Send for NestedComponentKind<'a>
impl<'a> Sync for NestedComponentKind<'a>
impl<'a> Unpin for NestedComponentKind<'a>
impl<'a> UnwindSafe for NestedComponentKind<'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