pub struct NonNegativeDecimal(/* private fields */);Implementations§
Trait Implementations§
Source§impl Clone for NonNegativeDecimal
impl Clone for NonNegativeDecimal
Source§fn clone(&self) -> NonNegativeDecimal
fn clone(&self) -> NonNegativeDecimal
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 moreimpl Copy for NonNegativeDecimal
Source§impl Debug for NonNegativeDecimal
impl Debug for NonNegativeDecimal
Source§impl<'de> Deserialize<'de> for NonNegativeDecimal
impl<'de> Deserialize<'de> for NonNegativeDecimal
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 Display for NonNegativeDecimal
impl Display for NonNegativeDecimal
impl Eq for NonNegativeDecimal
Source§impl From<NonNegativeDecimal> for Decimal
impl From<NonNegativeDecimal> for Decimal
Source§fn from(value: NonNegativeDecimal) -> Self
fn from(value: NonNegativeDecimal) -> Self
Converts to this type from the input type.
Source§impl FromStr for NonNegativeDecimal
impl FromStr for NonNegativeDecimal
Source§impl Hash for NonNegativeDecimal
impl Hash for NonNegativeDecimal
Source§impl Ord for NonNegativeDecimal
impl Ord for NonNegativeDecimal
Source§fn cmp(&self, other: &NonNegativeDecimal) -> Ordering
fn cmp(&self, other: &NonNegativeDecimal) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NonNegativeDecimal
impl PartialEq for NonNegativeDecimal
Source§impl PartialOrd for NonNegativeDecimal
impl PartialOrd for NonNegativeDecimal
Source§impl Serialize for NonNegativeDecimal
impl Serialize for NonNegativeDecimal
impl StructuralPartialEq for NonNegativeDecimal
Auto Trait Implementations§
impl Freeze for NonNegativeDecimal
impl RefUnwindSafe for NonNegativeDecimal
impl Send for NonNegativeDecimal
impl Sync for NonNegativeDecimal
impl Unpin for NonNegativeDecimal
impl UnsafeUnpin for NonNegativeDecimal
impl UnwindSafe for NonNegativeDecimal
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