#[repr(C)]pub struct StatementTypeAlias<'ast> {
pub base: StatementHeader<'ast>,
pub name: AstName<'ast>,
pub name_location: Location,
pub generics: &'ast [&'ast GenericType<'ast>],
pub generic_packs: &'ast [&'ast GenericTypePack<'ast>],
pub exported: bool,
pub ty: Type<'ast>,
}Fields§
§base: StatementHeader<'ast>§name: AstName<'ast>§name_location: Location§generics: &'ast [&'ast GenericType<'ast>]§generic_packs: &'ast [&'ast GenericTypePack<'ast>]§exported: bool§ty: Type<'ast>Implementations§
Source§impl<'ast> StatementTypeAlias<'ast>
impl<'ast> StatementTypeAlias<'ast>
pub fn new( location: Location, has_semicolon: bool, name: AstName<'ast>, name_location: Location, generics: &'ast [&'ast GenericType<'ast>], generic_packs: &'ast [&'ast GenericTypePack<'ast>], exported: bool, ty: Type<'ast>, ) -> Self
pub fn location(&self) -> Location
pub fn has_semicolon(&self) -> bool
Trait Implementations§
Source§impl Debug for StatementTypeAlias<'_>
impl Debug for StatementTypeAlias<'_>
Auto Trait Implementations§
impl<'ast> !Send for StatementTypeAlias<'ast>
impl<'ast> !Sync for StatementTypeAlias<'ast>
impl<'ast> Freeze for StatementTypeAlias<'ast>
impl<'ast> RefUnwindSafe for StatementTypeAlias<'ast>
impl<'ast> Unpin for StatementTypeAlias<'ast>
impl<'ast> UnsafeUnpin for StatementTypeAlias<'ast>
impl<'ast> UnwindSafe for StatementTypeAlias<'ast>
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