Enum rustc_middle::infer::canonical::Certainty[][src]

pub enum Certainty {
    Proven,
    Ambiguous,
}

Indicates whether or not we were able to prove the query to be true.

Variants

Proven

The query is known to be true, presuming that you apply the given var_values and the region-constraints are satisfied.

Ambiguous

The query is not known to be true, but also not known to be false. The var_values represent either values that must hold in order for the query to be true, or helpful tips that might make it true. Currently rustc’s trait solver cannot distinguish the two (e.g., due to our preference for where clauses over impls).

After some unifiations and things have been done, it makes sense to try and prove again – of course, at that point, the canonical form will be different, making this a distinct query.

Implementations

impl Certainty[src]

pub fn is_proven(&self) -> bool[src]

Trait Implementations

impl Clone for Certainty[src]

impl Copy for Certainty[src]

impl Debug for Certainty[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for Certainty[src]

impl<'tcx> Lift<'tcx> for Certainty[src]

type Lifted = Self

impl<'tcx> TypeFoldable<'tcx> for Certainty[src]

Auto Trait Implementations

impl RefUnwindSafe for Certainty

impl Send for Certainty

impl Sync for Certainty

impl Unpin for Certainty

impl UnwindSafe for Certainty

Blanket Implementations

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

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy
[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> MaybeResult<T> for T[src]

type Error = !

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]