pub enum MokoshError {
InvalidDimensions(String),
InvalidParameter {
name: &'static str,
message: String,
},
IndexOutOfBounds {
index: usize,
size: usize,
},
DimensionMismatch {
expected: Vec<u32>,
actual: Vec<u32>,
},
InvalidSdrData(String),
IoError {
message: String,
},
InternalError(String),
}Expand description
Main error type for mokosh operations.
Variants§
InvalidDimensions(String)
Invalid dimensions provided.
InvalidParameter
Invalid parameter value.
IndexOutOfBounds
Index out of bounds.
DimensionMismatch
Dimension mismatch between SDRs or other structures.
InvalidSdrData(String)
SDR data is invalid (e.g., unsorted sparse indices).
IoError
I/O error.
InternalError(String)
Internal error that should not occur.
Trait Implementations§
Source§impl Debug for MokoshError
impl Debug for MokoshError
Source§impl Display for MokoshError
impl Display for MokoshError
Source§impl Error for MokoshError
impl Error for MokoshError
1.30.0§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§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 MokoshError
impl RefUnwindSafe for MokoshError
impl Send for MokoshError
impl Sync for MokoshError
impl Unpin for MokoshError
impl UnwindSafe for MokoshError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more