Struct rustc_trans::middle::ty::GenericsExperimental [-]  [+] [src]

pub struct Generics<'tcx> {
    pub types: VecPerParamSpace<TypeParameterDef<'tcx>>,
    pub regions: VecPerParamSpace<RegionParameterDef>,
    pub predicates: VecPerParamSpace<Predicate<'tcx>>,
}

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

Fields

types
regions
predicates

Methods

impl<'tcx> Generics<'tcx>

fn empty() -> Generics<'tcx>

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

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

fn to_bounds(&self, tcx: &ctxt<'tcx>, substs: &Substs<'tcx>) -> GenericBounds<'tcx>

Trait Implementations

impl<'tcx> RegionEscape for Generics<'tcx>

fn has_regions_escaping_depth(&self, depth: u32) -> bool

fn has_escaping_regions(&self) -> bool

impl<'tcx> TypeFoldable<'tcx> for Generics<'tcx>

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

impl<'tcx> Repr<'tcx> for Generics<'tcx>

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

Derived Implementations

impl<'tcx> Show for Generics<'tcx>

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

impl<'tcx> Clone for Generics<'tcx>

fn clone(&self) -> Generics<'tcx>

fn clone_from(&mut self, &Generics<'tcx>)