Struct rustc::middle::ty::Generics[src]

pub struct Generics {
    pub types: VecPerParamSpace<TypeParameterDef>,
    pub regions: VecPerParamSpace<RegionParameterDef>,
}

Information about the type/lifetime parameters associated with an item or method. Analogous to ast::Generics.

Fields

types
regions

Methods

impl Generics

fn empty() -> Generics

fn has_type_params(&self, space: ParamSpace) -> bool

Trait Implementations

impl TypeFoldable for Generics

fn fold_with<F: TypeFolder>(&self, folder: &mut F) -> Generics

impl Repr for Generics

fn repr(&self, tcx: &ctxt) -> String

Derived Implementations

impl Clone for Generics

fn clone(&self) -> Generics

fn clone_from(&mut self, source: &Self)