pub enum CscError {
InvalidColPtrs {
expected: usize,
actual: usize,
},
LengthMismatch {
values_len: usize,
row_indices_len: usize,
},
InvalidRowIndex {
index: usize,
nrows: usize,
},
InvalidColPtrOrder,
DuplicateEntry {
row: usize,
col: usize,
},
}Expand description
Error type for CSC matrix operations.
Variants§
InvalidColPtrs
Invalid column pointer array length.
LengthMismatch
Mismatched array lengths.
InvalidRowIndex
Row index out of bounds.
InvalidColPtrOrder
Column pointers not monotonically increasing.
DuplicateEntry
Duplicate entry at same position.
Trait Implementations§
Source§impl Error for CscError
impl Error for CscError
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()
impl Eq for CscError
impl StructuralPartialEq for CscError
Auto Trait Implementations§
impl Freeze for CscError
impl RefUnwindSafe for CscError
impl Send for CscError
impl Sync for CscError
impl Unpin for CscError
impl UnwindSafe for CscError
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