Struct rustc_trait_selection::infer::resolve::OpportunisticVarResolver [−][src]
pub struct OpportunisticVarResolver<'a, 'tcx> {
infcx: &'a InferCtxt<'a, 'tcx>,
}Expand description
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>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,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for OpportunisticVarResolver<'a, 'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]