pub enum LinearError {
DimensionMismatch {
expected_rows: usize,
expected_columns: usize,
actual_rows: usize,
actual_columns: usize,
},
IndexOutOfBounds {
axis: &'static str,
index: usize,
bound: usize,
},
StorageLengthMismatch {
expected: usize,
actual: usize,
},
CapacityOverflow {
requested: usize,
},
AllocationFailure {
requested: usize,
},
InvalidStorage {
reason: &'static str,
},
}Variants§
DimensionMismatch
IndexOutOfBounds
StorageLengthMismatch
CapacityOverflow
AllocationFailure
InvalidStorage
Trait Implementations§
Source§impl Clone for LinearError
impl Clone for LinearError
Source§fn clone(&self) -> LinearError
fn clone(&self) -> LinearError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LinearError
Source§impl Debug for LinearError
impl Debug for LinearError
Source§impl Display for LinearError
impl Display for LinearError
impl Eq for LinearError
Source§impl Error for LinearError
Available on crate feature std only.
impl Error for LinearError
Available on crate feature
std only.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 LinearError
impl PartialEq for LinearError
impl StructuralPartialEq for LinearError
Auto Trait Implementations§
impl Freeze for LinearError
impl RefUnwindSafe for LinearError
impl Send for LinearError
impl Sync for LinearError
impl Unpin for LinearError
impl UnsafeUnpin for LinearError
impl UnwindSafe for LinearError
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