pub enum SeqError {
Show 13 variants
ShapeMismatch {
expected: usize,
got: usize,
},
DimensionMismatch {
a: usize,
b: usize,
},
NotConverged {
iter: usize,
},
InvalidConfiguration(String),
EmptyInput,
IndexOutOfBounds {
index: usize,
len: usize,
},
NumericalInstability(String),
ProbabilityOutOfRange(f64),
InvalidParameter {
name: String,
value: f64,
},
UnsupportedSmVersion(u32),
InvalidObservation(String),
LengthMismatch {
a: usize,
b: usize,
},
GraphInvariantViolated(String),
}Expand description
Errors that can be produced by sequence model algorithms.
Variants§
ShapeMismatch
DimensionMismatch
NotConverged
InvalidConfiguration(String)
EmptyInput
IndexOutOfBounds
NumericalInstability(String)
ProbabilityOutOfRange(f64)
InvalidParameter
UnsupportedSmVersion(u32)
InvalidObservation(String)
LengthMismatch
GraphInvariantViolated(String)
Trait Implementations§
Source§impl Error for SeqError
impl Error for SeqError
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()
Auto Trait Implementations§
impl Freeze for SeqError
impl RefUnwindSafe for SeqError
impl Send for SeqError
impl Sync for SeqError
impl Unpin for SeqError
impl UnsafeUnpin for SeqError
impl UnwindSafe for SeqError
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