pub enum NestedComponentKind<'a> {
Import {
import: InlineImport<'a>,
ty: ComponentTypeUse<'a, ComponentType<'a>>,
},
Inline(Vec<ComponentField<'a>>),
}
Available on crate feature
component-model
only.Expand description
The different kinds of ways to define a nested component.
Variants§
Import
This is actually an inline import of a component
Fields
§
import: InlineImport<'a>
The information about where this is being imported from.
§
ty: ComponentTypeUse<'a, ComponentType<'a>>
The type of component being imported.
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> Freeze for NestedComponentKind<'a>
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§
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