[−][src]Struct rustc_infer::infer::resolve::OpportunisticVarResolver

pub struct OpportunisticVarResolver<'a, 'tcx> {
    infcx: &'a InferCtxt<'a, 'tcx>,
}

The opportunistic resolver can be used at any time. It simply replaces type/const variables that have been unified with the things they have been unified with (similar to shallow_resolve, but deep). This is useful for printing messages etc but also required at various points for correctness.

Fields

infcx: &'a InferCtxt<'a, 'tcx>

Implementations

impl<'a, 'tcx> OpportunisticVarResolver<'a, 'tcx>[src]

pub fn new(infcx: &'a InferCtxt<'a, 'tcx>) -> Self[src]

Trait Implementations

impl<'a, 'tcx> TypeFolder<'tcx> for OpportunisticVarResolver<'a, 'tcx>[src]

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for OpportunisticVarResolver<'a, 'tcx>

impl<'a, 'tcx> !Send for OpportunisticVarResolver<'a, 'tcx>

impl<'a, 'tcx> !Sync for OpportunisticVarResolver<'a, 'tcx>

impl<'a, 'tcx> Unpin for OpportunisticVarResolver<'a, 'tcx> where
    'tcx: 'a, 

impl<'a, 'tcx> !UnwindSafe for OpportunisticVarResolver<'a, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]