pub struct LengthMismatch {
pub idx_len: usize,
pub val_len: usize,
}Expand description
Error returned when a sparse operand’s index and value slices differ in length.
Fields§
§idx_len: usize§val_len: usizeTrait Implementations§
Source§impl Clone for LengthMismatch
impl Clone for LengthMismatch
impl Copy for LengthMismatch
Source§impl Debug for LengthMismatch
impl Debug for LengthMismatch
Source§impl Display for LengthMismatch
impl Display for LengthMismatch
impl Eq for LengthMismatch
Source§impl Error for LengthMismatch
impl Error for LengthMismatch
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()
Source§impl PartialEq for LengthMismatch
impl PartialEq for LengthMismatch
impl StructuralPartialEq for LengthMismatch
Auto Trait Implementations§
impl Freeze for LengthMismatch
impl RefUnwindSafe for LengthMismatch
impl Send for LengthMismatch
impl Sync for LengthMismatch
impl Unpin for LengthMismatch
impl UnsafeUnpin for LengthMismatch
impl UnwindSafe for LengthMismatch
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