Struct rustc::middle::ty::GenericsExperimental [-]  [+] [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

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

Trait Implementations

impl TypeFoldable for Generics

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

impl Repr for Generics

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

Derived Implementations

impl Show for Generics

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Generics

fn clone(&self) -> Generics

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