Struct atrium_api::types::BoundedU64
source · pub struct BoundedU64<const MIN: u64, const MAX: u64>(/* private fields */);
Expand description
An unsigned integer with a minimum value of MIN
and a maximum value of MAX
.
MIN
must be non-zero.
Implementations§
Trait Implementations§
source§impl<const MIN: u64, const MAX: u64> Clone for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> Clone for BoundedU64<MIN, MAX>
source§fn clone(&self) -> BoundedU64<MIN, MAX>
fn clone(&self) -> BoundedU64<MIN, MAX>
Returns a copy 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<'de, const MIN: u64, const MAX: u64> Deserialize<'de> for BoundedU64<MIN, MAX>
impl<'de, const MIN: u64, const MAX: u64> Deserialize<'de> for BoundedU64<MIN, 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 MIN: u64, const MAX: u64> From<BoundedU64<MIN, MAX>> for NonZeroU64
impl<const MIN: u64, const MAX: u64> From<BoundedU64<MIN, MAX>> for NonZeroU64
source§fn from(value: BoundedU64<MIN, MAX>) -> Self
fn from(value: BoundedU64<MIN, MAX>) -> Self
Converts to this type from the input type.
source§impl<const MIN: u64, const MAX: u64> From<BoundedU64<MIN, MAX>> for u64
impl<const MIN: u64, const MAX: u64> From<BoundedU64<MIN, MAX>> for u64
source§fn from(value: BoundedU64<MIN, MAX>) -> Self
fn from(value: BoundedU64<MIN, MAX>) -> Self
Converts to this type from the input type.
impl<const MIN: u64, const MAX: u64> Copy for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> Eq for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> StructuralPartialEq for BoundedU64<MIN, MAX>
Auto Trait Implementations§
impl<const MIN: u64, const MAX: u64> Freeze for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> RefUnwindSafe for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> Send for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> Sync for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> Unpin for BoundedU64<MIN, MAX>
impl<const MIN: u64, const MAX: u64> UnwindSafe for BoundedU64<MIN, 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.