Enum rustc_trans::middle::ty::BoundRegionUnstable [-] [+] [src]

pub enum BoundRegion {
    BrAnon(u32),
    BrNamed(DefId, Name),
    BrFresh(u32),
    BrEnv,
}

Variants

BrAnon

An anonymous region parameter for a given fn (&T)

BrNamed

Named region parameters for functions (a in &'a T)

The def-id is needed to distinguish free regions in the event of shadowing.

BrFresh

Fresh bound identifiers created during GLB computations.

BrEnv

Trait Implementations

impl tr for BoundRegion

fn tr(&self, dcx: &DecodeContext) -> BoundRegion

impl<'tcx> Repr<'tcx> for BoundRegion

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

Derived Implementations

impl Copy for BoundRegion

impl Debug for BoundRegion

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

impl Decodable for BoundRegion

fn decode<__D>(__arg_0: &mut __D) -> Result<BoundRegion, __D::Error> where __D: Decoder

impl Encodable for BoundRegion

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder

impl Hash for BoundRegion

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

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

impl Ord for BoundRegion

fn cmp(&self, __arg_0: &BoundRegion) -> Ordering

impl Eq for BoundRegion

impl PartialOrd<BoundRegion> for BoundRegion

fn partial_cmp(&self, __arg_0: &BoundRegion) -> Option<Ordering>

fn lt(&self, __arg_0: &BoundRegion) -> bool

fn le(&self, __arg_0: &BoundRegion) -> bool

fn gt(&self, __arg_0: &BoundRegion) -> bool

fn ge(&self, __arg_0: &BoundRegion) -> bool

impl PartialEq<BoundRegion> for BoundRegion

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

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

impl Clone for BoundRegion

fn clone(&self) -> BoundRegion

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