pub enum AddConstraintError {
DuplicateConstraint,
UnsatisfiableConstraint,
InternalSolverError(InternalSolverError),
}Expand description
The possible error conditions that Solver::add_constraint can fail with.
Variants§
DuplicateConstraint
The constraint specified has already been added to the solver.
UnsatisfiableConstraint
The constraint is required, but it is unsatisfiable in conjunction with the existing constraints.
InternalSolverError(InternalSolverError)
The solver entered an invalid state.
Trait Implementations§
Source§impl Clone for AddConstraintError
impl Clone for AddConstraintError
Source§fn clone(&self) -> AddConstraintError
fn clone(&self) -> AddConstraintError
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 AddConstraintError
impl Debug for AddConstraintError
Source§impl Display for AddConstraintError
impl Display for AddConstraintError
Source§impl Error for AddConstraintError
impl Error for AddConstraintError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InternalSolverError> for AddConstraintError
impl From<InternalSolverError> for AddConstraintError
Source§fn from(source: InternalSolverError) -> Self
fn from(source: InternalSolverError) -> Self
Converts to this type from the input type.
impl Copy for AddConstraintError
Auto Trait Implementations§
impl Freeze for AddConstraintError
impl RefUnwindSafe for AddConstraintError
impl Send for AddConstraintError
impl Sync for AddConstraintError
impl Unpin for AddConstraintError
impl UnwindSafe for AddConstraintError
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