Enum argmin::core::ArgminError
source · [−]#[non_exhaustive]
pub enum ArgminError {
InvalidParameter {
text: String,
},
NotImplemented {
text: String,
},
NotInitialized {
text: String,
},
ConditionViolated {
text: String,
},
CheckpointNotFound {
text: String,
},
PotentialBug {
text: String,
},
ImpossibleError {
text: String,
},
}
Expand description
Argmin error type
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.
InvalidParameter
Fields
text: String
Text
Indicates and invalid parameter
NotImplemented
Fields
text: String
Text
Indicates that a function is not implemented
NotInitialized
Fields
text: String
Text
Indicates that a function is not initialized
ConditionViolated
Fields
text: String
Text
Indicates that a condition is violated
CheckpointNotFound
Fields
text: String
Text
Checkpoint was not found
PotentialBug
Fields
text: String
Text
For errors which are likely bugs.
ImpossibleError
Fields
text: String
Text
Indicates an impossible error
Trait Implementations
sourceimpl Debug for ArgminError
impl Debug for ArgminError
sourceimpl Display for ArgminError
impl Display for ArgminError
sourceimpl Error for ArgminError
impl Error for ArgminError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for ArgminError
impl Send for ArgminError
impl Sync for ArgminError
impl Unpin for ArgminError
impl UnwindSafe for ArgminError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more