pub struct LimitedU64<const MAX: u64>(/* private fields */);
Expand description
An unsigned integer with a maximum value of MAX
.
Implementations§
Trait Implementations§
Source§impl<const MAX: u64> Clone for LimitedU64<MAX>
impl<const MAX: u64> Clone for LimitedU64<MAX>
Source§fn clone(&self) -> LimitedU64<MAX>
fn clone(&self) -> LimitedU64<MAX>
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<const MAX: u64> Debug for LimitedU64<MAX>
impl<const MAX: u64> Debug for LimitedU64<MAX>
Source§impl<'de, const MAX: u64> Deserialize<'de> for LimitedU64<MAX>
impl<'de, const MAX: u64> Deserialize<'de> for LimitedU64<MAX>
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<const MAX: u64> From<LimitedU64<MAX>> for u64
impl<const MAX: u64> From<LimitedU64<MAX>> for u64
Source§fn from(value: LimitedU64<MAX>) -> Self
fn from(value: LimitedU64<MAX>) -> Self
Converts to this type from the input type.
Source§impl<const MAX: u64> FromStr for LimitedU64<MAX>
impl<const MAX: u64> FromStr for LimitedU64<MAX>
Source§impl<const MAX: u64> Hash for LimitedU64<MAX>
impl<const MAX: u64> Hash for LimitedU64<MAX>
Source§impl<const MAX: u64> PartialEq for LimitedU64<MAX>
impl<const MAX: u64> PartialEq for LimitedU64<MAX>
Source§impl<const MAX: u64> Serialize for LimitedU64<MAX>
impl<const MAX: u64> Serialize for LimitedU64<MAX>
impl<const MAX: u64> Copy for LimitedU64<MAX>
impl<const MAX: u64> Eq for LimitedU64<MAX>
impl<const MAX: u64> StructuralPartialEq for LimitedU64<MAX>
Auto Trait Implementations§
impl<const MAX: u64> Freeze for LimitedU64<MAX>
impl<const MAX: u64> RefUnwindSafe for LimitedU64<MAX>
impl<const MAX: u64> Send for LimitedU64<MAX>
impl<const MAX: u64> Sync for LimitedU64<MAX>
impl<const MAX: u64> Unpin for LimitedU64<MAX>
impl<const MAX: u64> UnwindSafe for LimitedU64<MAX>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.