pub struct DecimalU64(pub u64);Expand description
A 64-bit unsigned integer that is serialized as a decimal string in JSON to prevent precision loss across JavaScript, browser, and JSON boundaries.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Clone for DecimalU64
impl Clone for DecimalU64
impl Copy for DecimalU64
Source§impl Debug for DecimalU64
impl Debug for DecimalU64
Source§impl Default for DecimalU64
impl Default for DecimalU64
Source§impl<'de> Deserialize<'de> for DecimalU64
impl<'de> Deserialize<'de> for DecimalU64
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 DecimalU64
impl Display for DecimalU64
impl Eq for DecimalU64
Source§impl From<DecimalU64> for u64
impl From<DecimalU64> for u64
Source§fn from(val: DecimalU64) -> Self
fn from(val: DecimalU64) -> Self
Converts to this type from the input type.
Source§impl From<u64> for DecimalU64
impl From<u64> for DecimalU64
Source§impl FromStr for DecimalU64
impl FromStr for DecimalU64
Source§impl Hash for DecimalU64
impl Hash for DecimalU64
Source§impl Ord for DecimalU64
impl Ord for DecimalU64
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 DecimalU64
impl PartialEq for DecimalU64
Source§impl PartialOrd for DecimalU64
impl PartialOrd for DecimalU64
Source§impl Serialize for DecimalU64
impl Serialize for DecimalU64
impl StructuralPartialEq for DecimalU64
Auto Trait Implementations§
impl Freeze for DecimalU64
impl RefUnwindSafe for DecimalU64
impl Send for DecimalU64
impl Sync for DecimalU64
impl Unpin for DecimalU64
impl UnsafeUnpin for DecimalU64
impl UnwindSafe for DecimalU64
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