Struct rustc_typeck::middle::ty::Generics
[−]
[src]
pub struct Generics<'tcx> {
pub types: VecPerParamSpace<TypeParameterDef<'tcx>>,
pub regions: VecPerParamSpace<RegionParameterDef>,
}Unstable
Information about the formal type/lifetime parameters associated with an item or method. Analogous to ast::Generics.
Fields
types | Unstable |
regions | Unstable |
Methods
impl<'tcx> Generics<'tcx>
fn empty() -> Generics<'tcx>
Unstable
fn is_empty(&self) -> bool
Unstable
fn has_type_params(&self, space: ParamSpace) -> bool
Unstable
fn has_region_params(&self, space: ParamSpace) -> bool
Unstable