Enum faer_sparse::FaerError
source · #[non_exhaustive]pub enum FaerError {
IndexOverflow,
OutOfMemory,
}
Expand description
Errors that can occur in sparse algorithms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IndexOverflow
An index exceeding the maximum value (I::Signed::MAX
for a given index type I
).
OutOfMemory
Memory allocation failed.
Trait Implementations§
source§impl Error for FaerError
impl Error for FaerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Ord for FaerError
impl Ord for FaerError
source§impl PartialEq for FaerError
impl PartialEq for FaerError
source§impl PartialOrd for FaerError
impl PartialOrd for FaerError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FaerError
impl Eq for FaerError
impl StructuralPartialEq for FaerError
Auto Trait Implementations§
impl RefUnwindSafe for FaerError
impl Send for FaerError
impl Sync for FaerError
impl Unpin for FaerError
impl UnwindSafe for FaerError
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