pub enum Certainty {
    Proven,
    Ambiguous,
}
Expand description

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 unification 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.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 1 byte

Size for each variant:

  • Proven: 0 bytes
  • Ambiguous: 0 bytes