Struct rustc_hir::hir::Generics [−][src]
pub struct Generics<'hir> {
pub params: &'hir [GenericParam<'hir>],
pub where_clause: WhereClause<'hir>,
pub span: Span,
}
Expand description
Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc.
Fields
params: &'hir [GenericParam<'hir>]
where_clause: WhereClause<'hir>
span: Span
Implementations
Trait Implementations
Auto Trait Implementations
impl<'hir> RefUnwindSafe for Generics<'hir>
impl<'hir> UnwindSafe for Generics<'hir>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes