Enum monetary::MonetaryError
source · pub enum MonetaryError {
Std(StdError),
DenomMismatch(String, String),
TooManyDenoms {},
DenomNotFound(String),
}Variants§
Trait Implementations§
source§impl Debug for MonetaryError
impl Debug for MonetaryError
source§impl Display for MonetaryError
impl Display for MonetaryError
source§impl Error for MonetaryError
impl Error for MonetaryError
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 From<StdError> for MonetaryError
impl From<StdError> for MonetaryError
source§impl PartialEq for MonetaryError
impl PartialEq for MonetaryError
source§fn eq(&self, other: &MonetaryError) -> bool
fn eq(&self, other: &MonetaryError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MonetaryError
Auto Trait Implementations§
impl Freeze for MonetaryError
impl !RefUnwindSafe for MonetaryError
impl Send for MonetaryError
impl Sync for MonetaryError
impl Unpin for MonetaryError
impl !UnwindSafe for MonetaryError
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> 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