pub struct TypeAlias {
pub documentation: Option<Spanned<String>>,
pub name: Spanned<Ident>,
pub generics: Vec<Spanned<Ident>>,
pub type_annotation: Spanned<TypeAnnotation>,
}Expand description
A type alias definition.
Fields§
§documentation: Option<Spanned<String>>Optional documentation comment.
name: Spanned<Ident>The alias name: Model
generics: Vec<Spanned<Ident>>Type parameters: a, b in type alias Result a b = ...
type_annotation: Spanned<TypeAnnotation>The type being aliased.
Trait Implementations§
impl Eq for TypeAlias
impl StructuralPartialEq for TypeAlias
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