Struct rustc_infer::infer::InferOk [−][src]
#[must_use]pub struct InferOk<'tcx, T> { pub value: T, pub obligations: PredicateObligations<'tcx>, }
Fields
value: Tobligations: PredicateObligations<'tcx>Implementations
impl<'tcx, T> InferOk<'tcx, T>[src]
impl<'tcx, T> InferOk<'tcx, T>[src]pub fn unit(self) -> InferOk<'tcx, ()>[src]
pub fn into_value_registering_obligations(
self,
infcx: &InferCtxt<'_, 'tcx>,
fulfill_cx: &mut dyn TraitEngine<'tcx>
) -> T[src]
pub fn into_value_registering_obligations(
self,
infcx: &InferCtxt<'_, 'tcx>,
fulfill_cx: &mut dyn TraitEngine<'tcx>
) -> T[src]Extracts value, registering any obligations into fulfill_cx.
impl<'tcx> InferOk<'tcx, ()>[src]
impl<'tcx> InferOk<'tcx, ()>[src]pub fn into_obligations(self) -> PredicateObligations<'tcx>[src]
Trait Implementations
Auto Trait Implementations
impl<'tcx, T> !RefUnwindSafe for InferOk<'tcx, T>
impl<'tcx, T> !Send for InferOk<'tcx, T>
impl<'tcx, T> !Sync for InferOk<'tcx, T>
impl<'tcx, T> Unpin for InferOk<'tcx, T> where
T: Unpin,
T: Unpin,
impl<'tcx, T> !UnwindSafe for InferOk<'tcx, T>
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]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,