Enum rustc_trans::middle::infer::RegionVariableOriginExperimental [-]  [+] [src]

pub enum RegionVariableOrigin<'tcx> {
    MiscVariable(Span),
    PatternRegion(Span),
    AddrOfRegion(Span),
    AddrOfSlice(Span),
    Autoref(Span),
    Coercion(TypeTrace<'tcx>),
    EarlyBoundRegion(Span, Name),
    LateBoundRegion(Span, BoundRegion, LateBoundRegionConversionTime),
    UpvarRegion(UpvarId, Span),
    BoundRegionInCoherence(Name),
}

Reasons to create a region inference variable

See error_reporting.rs for more details

Variants

MiscVariable
PatternRegion
AddrOfRegion
AddrOfSlice
Autoref
Coercion
EarlyBoundRegion
LateBoundRegion
UpvarRegion
BoundRegionInCoherence

Methods

impl<'tcx> RegionVariableOrigin<'tcx>

fn span(&self) -> Span

Trait Implementations

impl<'tcx> Repr<'tcx> for RegionVariableOrigin<'tcx>

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

Derived Implementations

impl<'tcx> Show for RegionVariableOrigin<'tcx>

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

impl<'tcx> Clone for RegionVariableOrigin<'tcx>

fn clone(&self) -> RegionVariableOrigin<'tcx>

fn clone_from(&mut self, &RegionVariableOrigin<'tcx>)