Struct rustc_infer::infer::InferOk
source · [−]pub struct InferOk<'tcx, T> {
pub value: T,
pub obligations: PredicateObligations<'tcx>,
}
Fields
value: T
obligations: PredicateObligations<'tcx>
Implementations
sourceimpl<'tcx, T> InferOk<'tcx, T>
impl<'tcx, T> InferOk<'tcx, T>
pub fn unit(self) -> InferOk<'tcx, ()>
sourcepub fn into_value_registering_obligations(
self,
infcx: &InferCtxt<'_, 'tcx>,
fulfill_cx: &mut dyn TraitEngine<'tcx>
) -> T
pub fn into_value_registering_obligations(
self,
infcx: &InferCtxt<'_, 'tcx>,
fulfill_cx: &mut dyn TraitEngine<'tcx>
) -> T
Extracts value
, registering any obligations into fulfill_cx
.
sourceimpl<'tcx> InferOk<'tcx, ()>
impl<'tcx> InferOk<'tcx, ()>
pub fn into_obligations(self) -> PredicateObligations<'tcx>
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,
impl<'tcx, T> !UnwindSafe for InferOk<'tcx, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.