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: SpanImplementations
impl<'hir> Generics<'hir>[src]
impl<'hir> Generics<'hir>[src]Trait Implementations
impl<'hir, __CTX> HashStable<__CTX> for Generics<'hir> where
__CTX: HashStableContext, [src]
impl<'hir, __CTX> HashStable<__CTX> for Generics<'hir> where
__CTX: HashStableContext, [src]