pub enum MaybeCause {
Ambiguity,
Overflow {
suggest_increasing_limit: bool,
keep_constraints: bool,
},
}
Expand description
Why we failed to evaluate a goal.
Variants§
Ambiguity
We failed due to ambiguity. This ambiguity can either
be a true ambiguity, i.e. there are multiple different answers,
or we hit a case where we just don’t bother, e.g. ?x: Trait
goals.
Overflow
We gave up due to an overflow, most often by hitting the recursion limit.
Implementations§
Source§impl MaybeCause
impl MaybeCause
pub fn or(self, other: MaybeCause) -> MaybeCause
Trait Implementations§
Source§impl Clone for MaybeCause
impl Clone for MaybeCause
Source§fn clone(&self) -> MaybeCause
fn clone(&self) -> MaybeCause
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MaybeCause
impl Debug for MaybeCause
Source§impl Hash for MaybeCause
impl Hash for MaybeCause
Source§impl PartialEq for MaybeCause
impl PartialEq for MaybeCause
impl Copy for MaybeCause
impl Eq for MaybeCause
impl StructuralPartialEq for MaybeCause
Auto Trait Implementations§
impl Freeze for MaybeCause
impl RefUnwindSafe for MaybeCause
impl Send for MaybeCause
impl Sync for MaybeCause
impl Unpin for MaybeCause
impl UnwindSafe for MaybeCause
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.