Enum rustc_infer::traits::solve::MaybeCause
source · pub enum MaybeCause {
Ambiguity,
Overflow,
}
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.
Auto Trait Implementations§
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
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:
Ambiguity
: 0 bytesOverflow
: 0 bytes