pub enum SvdLibError {
InvalidArgument(String),
ShapeMismatch(String),
NoConvergence {
stage: &'static str,
iterations: usize,
},
Failed {
stage: &'static str,
message: String,
},
DenseFactorization {
factorization: &'static str,
message: String,
},
Shape(String),
}Expand description
Everything this crate can fail with.
In 1.x the Lanczos path returned SvdLibError while the randomized path returned
anyhow::Error; both now return this type.
Variants§
InvalidArgument(String)
A caller-supplied parameter was rejected before any work started.
ShapeMismatch(String)
The operands’ shapes are inconsistent.
NoConvergence
A tridiagonal/bidiagonal eigenproblem failed to converge.
stage names the kernel (imtqlb, imtql2, …) so the origin stays visible
without a separate variant per call site.
Failed
The algorithm ran but could not produce the requested number of dimensions.
DenseFactorization
A dense factorization from the linear-algebra backend failed.
Shape(String)
Trait Implementations§
Source§impl Clone for SvdLibError
impl Clone for SvdLibError
Source§fn clone(&self) -> SvdLibError
fn clone(&self) -> SvdLibError
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 moreSource§impl Debug for SvdLibError
impl Debug for SvdLibError
Source§impl Display for SvdLibError
impl Display for SvdLibError
Source§impl Error for SvdLibError
impl Error for SvdLibError
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 From<ShapeError> for SvdLibError
impl From<ShapeError> for SvdLibError
Source§fn from(e: ShapeError) -> Self
fn from(e: ShapeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SvdLibError
impl PartialEq for SvdLibError
impl StructuralPartialEq for SvdLibError
Auto Trait Implementations§
impl Freeze for SvdLibError
impl RefUnwindSafe for SvdLibError
impl Send for SvdLibError
impl Sync for SvdLibError
impl Unpin for SvdLibError
impl UnsafeUnpin for SvdLibError
impl UnwindSafe for SvdLibError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more