Enum rustc_typeck::middle::subst::RegionSubstsExperimental [-]  [+] [src]

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

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
NonerasedRegions

Methods

impl RegionSubsts

fn is_erased(&self) -> bool

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 Show for RegionSubsts

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

impl<__S: Writer> Hash<__S> for RegionSubsts

fn hash(&self, __arg_0: &mut __S)

impl Eq for RegionSubsts

fn assert_receiver_is_total_eq(&self)

impl PartialEq<RegionSubsts> for RegionSubsts

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

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

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

impl Clone for RegionSubsts

fn clone(&self) -> RegionSubsts

fn clone_from(&mut self, &RegionSubsts)