pub enum SuggestValueError {
UnknownEditVariable,
InternalSolverError(InternalSolverError),
}Expand description
The possible error conditions that Solver::suggest_value can fail with.
Variants§
UnknownEditVariable
The specified variable was not an edit variable in the solver, so cannot have its value suggested.
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 SuggestValueError
impl Clone for SuggestValueError
Source§fn clone(&self) -> SuggestValueError
fn clone(&self) -> SuggestValueError
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 SuggestValueError
impl Debug for SuggestValueError
Source§impl Display for SuggestValueError
impl Display for SuggestValueError
Source§impl Error for SuggestValueError
impl Error for SuggestValueError
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 SuggestValueError
impl From<InternalSolverError> for SuggestValueError
Source§fn from(source: InternalSolverError) -> Self
fn from(source: InternalSolverError) -> Self
Converts to this type from the input type.
impl Copy for SuggestValueError
Auto Trait Implementations§
impl Freeze for SuggestValueError
impl RefUnwindSafe for SuggestValueError
impl Send for SuggestValueError
impl Sync for SuggestValueError
impl Unpin for SuggestValueError
impl UnwindSafe for SuggestValueError
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