pub struct Uint64(/* private fields */);Implementations§
Source§impl Uint64
impl Uint64
pub const MAX: Self
pub const MIN: Self
Sourcepub const fn new(value: u64) -> Self
pub const fn new(value: u64) -> Self
Creates a Uint64(value).
This method is less flexible than from but can be called in a const context.
Sourcepub const fn strict_add(self, rhs: Self) -> Self
pub const fn strict_add(self, rhs: Self) -> Self
Strict integer addition. Computes self + rhs, panicking if overflow occurred.
This is the same as Uint64::add but const.
Sourcepub const fn strict_sub(self, other: Self) -> Self
pub const fn strict_sub(self, other: Self) -> Self
Strict integer subtraction. Computes self - rhs, panicking if overflow occurred.
This is the same as Uint64::sub but const.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Uint64
impl<'de> Deserialize<'de> for Uint64
Source§fn deserialize<D>(deserializer: D) -> Result<Uint64, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Uint64, D::Error>where
D: Deserializer<'de>,
Deserialized from an integer string using base 10
Source§impl Ord for Uint64
impl Ord for Uint64
Source§impl PartialOrd for Uint64
impl PartialOrd for Uint64
impl Copy for Uint64
impl Eq for Uint64
impl StructuralPartialEq for Uint64
Auto Trait Implementations§
impl Freeze for Uint64
impl RefUnwindSafe for Uint64
impl Send for Uint64
impl Sync for Uint64
impl Unpin for Uint64
impl UnwindSafe for Uint64
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