pub struct TypeAlias {
pub doc: Option<DocComment>,
pub name: Ident,
pub params: Vec<TyVar>,
pub ty: Type,
pub span: Span,
}Expand description
A type alias declaration.
Fields§
§doc: Option<DocComment>Documentation comment.
name: IdentThe alias name.
params: Vec<TyVar>Type parameters.
ty: TypeThe aliased type.
span: SpanThe span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeAlias
impl RefUnwindSafe for TypeAlias
impl Send for TypeAlias
impl Sync for TypeAlias
impl Unpin for TypeAlias
impl UnsafeUnpin for TypeAlias
impl UnwindSafe for TypeAlias
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