Enum rustc::middle::ty::ObjectLifetimeDefaultUnstable [-] [+] [src]

pub enum ObjectLifetimeDefault {
    Ambiguous,
    Specific(Region),
}

Default region to use for the bound of objects that are supplied as the value for this type parameter. This is derived from T:'a annotations appearing in the type definition. If this is None, then the default is inherited from the surrounding context. See RFC #599 for details.

Variants

Ambiguous

Require an explicit annotation. Occurs when multiple T:'a constraints are found.

Specific

Use the given region as the default.

Trait Implementations

impl<'tcx> Repr<'tcx> for ObjectLifetimeDefault

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

impl<'tcx> TypeFoldable<'tcx> for ObjectLifetimeDefault

fn fold_with<F: TypeFolder<'tcx>>(&self, folder: &mut F) -> ObjectLifetimeDefault

Derived Implementations

impl Debug for ObjectLifetimeDefault

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

impl Clone for ObjectLifetimeDefault

fn clone(&self) -> ObjectLifetimeDefault

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

impl Copy for ObjectLifetimeDefault