pub struct ComponentType<'a> {
pub decls: Vec<ComponentTypeDecl<'a>>,
}
Available on crate feature
component-model
only.Expand description
A type definition for a component type.
Fields§
§decls: Vec<ComponentTypeDecl<'a>>
The declarations of the component type.
Trait Implementations§
Source§impl<'a> Debug for ComponentType<'a>
impl<'a> Debug for ComponentType<'a>
Source§impl<'a> Default for ComponentType<'a>
impl<'a> Default for ComponentType<'a>
Source§fn default() -> ComponentType<'a>
fn default() -> ComponentType<'a>
Returns the “default value” for a type. Read more
Source§impl From<&ComponentType<'_>> for ComponentType
impl From<&ComponentType<'_>> for ComponentType
Source§fn from(ty: &ComponentType<'_>) -> Self
fn from(ty: &ComponentType<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ComponentType<'a>
impl<'a> RefUnwindSafe for ComponentType<'a>
impl<'a> Send for ComponentType<'a>
impl<'a> Sync for ComponentType<'a>
impl<'a> Unpin for ComponentType<'a>
impl<'a> UnwindSafe for ComponentType<'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