pub enum MerminError {
DimensionMismatch {
expected: String,
got: String,
},
ContourTooShort {
n: usize,
min: usize,
},
EmptyMask {
label: i32,
},
SingularMatrix,
InvalidK {
k: u32,
},
NoCells,
PoincareHopfViolation {
sum: f64,
chi: i32,
},
Other(String),
}Expand description
All fallible operations in mermin return this error type.
Variants§
DimensionMismatch
ContourTooShort
EmptyMask
SingularMatrix
InvalidK
NoCells
PoincareHopfViolation
Other(String)
Trait Implementations§
Source§impl Debug for MerminError
impl Debug for MerminError
Source§impl Display for MerminError
impl Display for MerminError
Source§impl Error for MerminError
impl Error for MerminError
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()
Auto Trait Implementations§
impl Freeze for MerminError
impl RefUnwindSafe for MerminError
impl Send for MerminError
impl Sync for MerminError
impl Unpin for MerminError
impl UnsafeUnpin for MerminError
impl UnwindSafe for MerminError
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