Struct CurrencyMismatch
pub struct CurrencyMismatch { /* private fields */ }Expand description
A same-currency operation received different currencies.
Implementations§
§impl CurrencyMismatch
impl CurrencyMismatch
pub const fn expected(&self) -> &CurrencyCode
pub const fn expected(&self) -> &CurrencyCode
Returns the expected currency.
pub const fn actual(&self) -> &CurrencyCode
pub const fn actual(&self) -> &CurrencyCode
Returns the actual currency.
Trait Implementations§
§impl Clone for CurrencyMismatch
impl Clone for CurrencyMismatch
§fn clone(&self) -> CurrencyMismatch
fn clone(&self) -> CurrencyMismatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for CurrencyMismatch
impl Debug for CurrencyMismatch
§impl Display for CurrencyMismatch
impl Display for CurrencyMismatch
§impl Error for CurrencyMismatch
impl Error for CurrencyMismatch
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()
§impl PartialEq for CurrencyMismatch
impl PartialEq for CurrencyMismatch
impl Eq for CurrencyMismatch
impl StructuralPartialEq for CurrencyMismatch
Auto Trait Implementations§
impl Freeze for CurrencyMismatch
impl RefUnwindSafe for CurrencyMismatch
impl Send for CurrencyMismatch
impl Sync for CurrencyMismatch
impl Unpin for CurrencyMismatch
impl UnsafeUnpin for CurrencyMismatch
impl UnwindSafe for CurrencyMismatch
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