pub struct TypeDeclarationFull {
pub exported: bool,
pub name: Identifier,
pub generics: Vec<GenericParameter>,
pub type_expr: TypeExpr,
pub span: Span,
}Expand description
A fully resolved type or export type declaration.
Unlike TypeDeclaration, which only stores
spans, this variant includes the actual parsed type expression. You get
these from AstWithTypes::type_declarations.
Fields§
§exported: boolWhether this was declared with export.
name: IdentifierThe name of the type alias.
generics: Vec<GenericParameter>The generic parameters.
type_expr: TypeExprThe right side type expression.
span: SpanWhere it appears in the source.
Implementations§
Source§impl TypeDeclarationFull
impl TypeDeclarationFull
pub fn new( exported: bool, name: Identifier, generics: Vec<GenericParameter>, type_expr: TypeExpr, span: Span, ) -> Self
Trait Implementations§
Source§impl Clone for TypeDeclarationFull
impl Clone for TypeDeclarationFull
Source§fn clone(&self) -> TypeDeclarationFull
fn clone(&self) -> TypeDeclarationFull
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeDeclarationFull
impl Debug for TypeDeclarationFull
Source§impl PartialEq for TypeDeclarationFull
impl PartialEq for TypeDeclarationFull
impl StructuralPartialEq for TypeDeclarationFull
Auto Trait Implementations§
impl Freeze for TypeDeclarationFull
impl RefUnwindSafe for TypeDeclarationFull
impl Send for TypeDeclarationFull
impl Sync for TypeDeclarationFull
impl Unpin for TypeDeclarationFull
impl UnsafeUnpin for TypeDeclarationFull
impl UnwindSafe for TypeDeclarationFull
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