pub enum ConstraintConflict {
DisjointUpperBounds(TypeId, TypeId),
LowerExceedsUpper(TypeId, TypeId),
}Expand description
Conflict detected between constraints on an inference variable.
Variants§
DisjointUpperBounds(TypeId, TypeId)
Mutually exclusive upper bounds (e.g., string AND number)
LowerExceedsUpper(TypeId, TypeId)
A lower bound is not a subtype of an upper bound
Trait Implementations§
Source§impl Clone for ConstraintConflict
impl Clone for ConstraintConflict
Source§fn clone(&self) -> ConstraintConflict
fn clone(&self) -> ConstraintConflict
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 moreAuto Trait Implementations§
impl Freeze for ConstraintConflict
impl RefUnwindSafe for ConstraintConflict
impl Send for ConstraintConflict
impl Sync for ConstraintConflict
impl Unpin for ConstraintConflict
impl UnsafeUnpin for ConstraintConflict
impl UnwindSafe for ConstraintConflict
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