pub enum RemoveConstraintError {
UnknownConstraint,
InternalSolverError(InternalSolverError),
}Expand description
The possible error conditions that Solver::remove_constraint can fail with.
Variants§
UnknownConstraint
The constraint specified was not already in the solver, so cannot be removed.
InternalSolverError(InternalSolverError)
The solver entered an invalid state. If this occurs please report the issue. This variant specifies additional details as a string.
Trait Implementations§
Source§impl Clone for RemoveConstraintError
impl Clone for RemoveConstraintError
Source§fn clone(&self) -> RemoveConstraintError
fn clone(&self) -> RemoveConstraintError
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 RemoveConstraintError
impl Debug for RemoveConstraintError
Source§impl Display for RemoveConstraintError
impl Display for RemoveConstraintError
Source§impl Error for RemoveConstraintError
impl Error for RemoveConstraintError
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 RemoveConstraintError
impl From<InternalSolverError> for RemoveConstraintError
Source§fn from(source: InternalSolverError) -> Self
fn from(source: InternalSolverError) -> Self
Converts to this type from the input type.
impl Copy for RemoveConstraintError
Auto Trait Implementations§
impl Freeze for RemoveConstraintError
impl RefUnwindSafe for RemoveConstraintError
impl Send for RemoveConstraintError
impl Sync for RemoveConstraintError
impl Unpin for RemoveConstraintError
impl UnwindSafe for RemoveConstraintError
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