pub struct Type<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub def: TypeDef<'a>,
}
Expand description
A type declaration in a module
Fields
span: Span
Where this type was defined.
id: Option<Id<'a>>
An optional identifer to refer to this type
by as part of name
resolution.
name: Option<NameAnnotation<'a>>
An optional name for this function stored in the custom name
section.
def: TypeDef<'a>
The type that we’re declaring.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more