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>,
}
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.
Trait Implementations
Auto Trait Implementations
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
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