[−][src]Struct rustc_trait_selection::infer::InferOk

#[must_use]pub struct InferOk<'tcx, T> {
    pub value: T,
    pub obligations: Vec<Obligation<'tcx, Predicate<'tcx>>>,
}

Fields

value: Tobligations: Vec<Obligation<'tcx, Predicate<'tcx>>>

Implementations

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> + 'tcx)
) -> T
[src]

Extracts value, registering any obligations into fulfill_cx.

impl<'tcx> InferOk<'tcx, ()>[src]

pub fn into_obligations(self) -> Vec<Obligation<'tcx, Predicate<'tcx>>>[src]

Trait Implementations

impl<'tcx, T> Debug for InferOk<'tcx, T> where
    T: Debug, 
[src]

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

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<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]