Enum rustc_typeck::middle::subst::RegionSubsts [−] [src]

pub enum RegionSubsts {
    ErasedRegions,
    NonerasedRegions(VecPerParamSpace<Region>),
}
Unstable

Represents the values to use when substituting lifetime parameters. If the value is ErasedRegions, then this subst is occurring during trans, and all region parameters will be replaced with ty::ReStatic.

Variants

ErasedRegions
Unstable
NonerasedRegions
Unstable

Methods

impl RegionSubsts

fn is_erased(&self) -> bool

Unstable

Trait Implementations

impl<'tcx> RegionEscape for RegionSubsts

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

fn has_escaping_regions(&self) -> bool

impl<'tcx> Repr<'tcx> for RegionSubsts

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

Derived Implementations

impl Debug for RegionSubsts

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

impl Hash for RegionSubsts

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for RegionSubsts

impl PartialEq<RegionSubsts> for RegionSubsts

fn eq(&self, __arg_0: &RegionSubsts) -> bool

fn ne(&self, __arg_0: &RegionSubsts) -> bool

impl Clone for RegionSubsts

fn clone(&self) -> RegionSubsts

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