Enum cfr::SolveError
source · #[non_exhaustive]pub enum SolveError {
ThreadOverflow,
ThreadSpawnError,
}
Expand description
Errors that result from problems solving
Most of of these are either caused by invalid arguments or problems creating threads when using multi-threaded solving. If explicitely using single threaded, or the input parameters are validated in advance, these can be safely unwrapped.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ThreadOverflow
Returned when the requested number of threads was too large
ThreadSpawnError
Returned when a multi-threaded solver couldn’t create a thread pool
Trait Implementations§
source§impl Clone for SolveError
impl Clone for SolveError
source§fn clone(&self) -> SolveError
fn clone(&self) -> SolveError
Returns a copy 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 SolveError
impl Debug for SolveError
source§impl Display for SolveError
impl Display for SolveError
source§impl Error for SolveError
impl Error for SolveError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ThreadPoolBuildError> for SolveError
impl From<ThreadPoolBuildError> for SolveError
source§impl PartialEq for SolveError
impl PartialEq for SolveError
source§fn eq(&self, other: &SolveError) -> bool
fn eq(&self, other: &SolveError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SolveError
impl Eq for SolveError
impl StructuralEq for SolveError
impl StructuralPartialEq for SolveError
Auto Trait Implementations§
impl RefUnwindSafe for SolveError
impl Send for SolveError
impl Sync for SolveError
impl Unpin for SolveError
impl UnwindSafe for SolveError
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.