pub enum MedError<T> {
Size(T),
Nan(T),
Other(T),
}
Expand description
custom error
Variants§
Size(T)
Non positive data dimension
Nan(T)
NaN float NaN encountered
Other(T)
Other error converted to RanError
Trait Implementations§
source§impl<T> Error for MedError<T>
impl<T> Error for MedError<T>
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()
Auto Trait Implementations§
impl<T> RefUnwindSafe for MedError<T>where
T: RefUnwindSafe,
impl<T> Send for MedError<T>where
T: Send,
impl<T> Sync for MedError<T>where
T: Sync,
impl<T> Unpin for MedError<T>where
T: Unpin,
impl<T> UnwindSafe for MedError<T>where
T: UnwindSafe,
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> Pointable for T
impl<T> Pointable for T
source§impl<T> Printing<T> for Twhere
T: Display,
impl<T> Printing<T> for Twhere
T: Display,
source§fn to_str(self) -> String
fn to_str(self) -> String
Method to serialize.
Decorates Vecs with square brackets and tuples with round ones.
Implementation code is in
printing.rs
.source§fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize in minimal form (space separated, no brackets)
Implementation code is in
printing.rs
.