pub struct DecimalMoney { /* private fields */ }Implementations§
Source§impl DecimalMoney
impl DecimalMoney
pub const fn new(coefficient: SignedMoney, scale: Nat) -> Self
pub const fn coefficient(&self) -> SignedMoney
pub const fn scale(&self) -> Nat
Trait Implementations§
Source§impl Clone for DecimalMoney
impl Clone for DecimalMoney
Source§fn clone(&self) -> DecimalMoney
fn clone(&self) -> DecimalMoney
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecimalMoney
impl Debug for DecimalMoney
Source§impl PartialEq for DecimalMoney
impl PartialEq for DecimalMoney
Source§fn eq(&self, other: &DecimalMoney) -> bool
fn eq(&self, other: &DecimalMoney) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DecimalMoney
impl Eq for DecimalMoney
impl StructuralPartialEq for DecimalMoney
Auto Trait Implementations§
impl Freeze for DecimalMoney
impl RefUnwindSafe for DecimalMoney
impl Send for DecimalMoney
impl Sync for DecimalMoney
impl Unpin for DecimalMoney
impl UnsafeUnpin for DecimalMoney
impl UnwindSafe for DecimalMoney
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