#[non_exhaustive]pub enum ConfigurationError {
EmptyData {
context: &'static str,
},
DimensionOverflow {
context: &'static str,
},
DimensionMismatch {
context: &'static str,
},
NonFiniteData {
context: &'static str,
},
InvalidParameter {
parameter: &'static str,
reason: &'static str,
},
InvalidBounds {
context: &'static str,
reason: &'static str,
},
}Expand description
Invalid data supplied while constructing a problem or algorithm.
Construction errors are separate from crate::SolveError so callers can
distinguish invalid configuration from failures that occur while stepping.
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.
EmptyData
A required state, matrix collection, or coefficient collection is empty.
DimensionOverflow
Computing a required dense dimension overflowed usize.
DimensionMismatch
Related state or matrix dimensions do not agree.
NonFiniteData
Configuration data contains a NaN or infinity.
InvalidParameter
A scalar algorithm parameter lies outside its supported domain.
Fields
InvalidBounds
A set of related bounds is non-finite, unordered, or otherwise invalid.
Trait Implementations§
Source§impl Clone for ConfigurationError
impl Clone for ConfigurationError
impl Copy for ConfigurationError
Source§impl Debug for ConfigurationError
impl Debug for ConfigurationError
Source§impl Display for ConfigurationError
impl Display for ConfigurationError
impl Eq for ConfigurationError
Source§impl Error for ConfigurationError
impl Error for ConfigurationError
1.30.0 · 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 PartialEq for ConfigurationError
impl PartialEq for ConfigurationError
impl StructuralPartialEq for ConfigurationError
Auto Trait Implementations§
impl Forget for ConfigurationError
impl Freeze for ConfigurationError
impl Move for ConfigurationError
impl RefUnwindSafe for ConfigurationError
impl Send for ConfigurationError
impl Sync for ConfigurationError
impl Unpin for ConfigurationError
impl UnsafeUnpin for ConfigurationError
impl UnwindSafe for ConfigurationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more