Enum rustc::middle::subst::RegionSubstsUnstable [-] [+] [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 Debug for RegionSubsts

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

impl Hash for RegionSubsts

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

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

impl Eq for RegionSubsts

fn assert_receiver_is_total_eq(&self)

impl PartialEq 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)