pub struct Type<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub exports: InlineExport<'a>,
pub def: TypeDef<'a>,
}
Available on crate feature
component-model
only.Expand description
A type declaration in a component.
Fields§
§span: Span
Where this type was defined.
id: Option<Id<'a>>
An optional identifier to refer to this type
by as part of name
resolution.
name: Option<NameAnnotation<'a>>
An optional name for this type stored in the custom name
section.
exports: InlineExport<'a>
If present, inline export annotations which indicate names this definition should be exported under.
def: TypeDef<'a>
The type definition.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'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