pub enum BscError {
InvalidBlockSize {
block_rows: usize,
block_cols: usize,
},
IncompatibleDimensions {
nrows: usize,
ncols: usize,
block_rows: usize,
block_cols: usize,
},
InvalidIndptr {
expected: usize,
actual: usize,
},
DataIndicesMismatch {
num_blocks: usize,
num_indices: usize,
},
InvalidBlockIndex {
index: usize,
mb_rows: usize,
},
InvalidIndptrOrder,
InvalidBlockData {
block_idx: usize,
expected: usize,
actual: usize,
},
}Expand description
Error type for BSC matrix operations.
Variants§
InvalidBlockSize
Invalid block dimensions.
IncompatibleDimensions
Matrix dimensions not compatible with block size.
Fields
InvalidIndptr
Invalid indptr array length.
DataIndicesMismatch
Mismatched data/indices counts.
InvalidBlockIndex
Block row index out of bounds.
InvalidIndptrOrder
Indptr not monotonically increasing.
InvalidBlockData
Block data has wrong size.
Trait Implementations§
Source§impl Error for BscError
impl Error for BscError
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 BscError
impl StructuralPartialEq for BscError
Auto Trait Implementations§
impl Freeze for BscError
impl RefUnwindSafe for BscError
impl Send for BscError
impl Sync for BscError
impl Unpin for BscError
impl UnwindSafe for BscError
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