pub struct MinorUnits(/* private fields */);Expand description
Typed minor units domain value that keeps raw primitives out of money workflows.
Implementations§
Trait Implementations§
Source§impl Clone for MinorUnits
impl Clone for MinorUnits
Source§fn clone(&self) -> MinorUnits
fn clone(&self) -> MinorUnits
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 moreSource§impl Debug for MinorUnits
impl Debug for MinorUnits
Source§impl<'de> Deserialize<'de> for MinorUnits
impl<'de> Deserialize<'de> for MinorUnits
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MinorUnits
impl Hash for MinorUnits
Source§impl Ord for MinorUnits
impl Ord for MinorUnits
Source§fn cmp(&self, other: &MinorUnits) -> Ordering
fn cmp(&self, other: &MinorUnits) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MinorUnits
impl PartialEq for MinorUnits
Source§impl PartialOrd for MinorUnits
impl PartialOrd for MinorUnits
Source§impl Serialize for MinorUnits
impl Serialize for MinorUnits
impl Copy for MinorUnits
impl Eq for MinorUnits
impl StructuralPartialEq for MinorUnits
Auto Trait Implementations§
impl Freeze for MinorUnits
impl RefUnwindSafe for MinorUnits
impl Send for MinorUnits
impl Sync for MinorUnits
impl Unpin for MinorUnits
impl UnsafeUnpin for MinorUnits
impl UnwindSafe for MinorUnits
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