Struct atrium_api::types::LimitedU32
source · pub struct LimitedU32<const MAX: u32>(/* private fields */);
Expand description
An unsigned integer with a maximum value of MAX
.
Implementations§
Trait Implementations§
source§impl<const MAX: u32> Clone for LimitedU32<MAX>
impl<const MAX: u32> Clone for LimitedU32<MAX>
source§fn clone(&self) -> LimitedU32<MAX>
fn clone(&self) -> LimitedU32<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<const MAX: u32> Debug for LimitedU32<MAX>
impl<const MAX: u32> Debug for LimitedU32<MAX>
source§impl<'de, const MAX: u32> Deserialize<'de> for LimitedU32<MAX>
impl<'de, const MAX: u32> Deserialize<'de> for LimitedU32<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: u32> From<LimitedU32<MAX>> for u32
impl<const MAX: u32> From<LimitedU32<MAX>> for u32
source§fn from(value: LimitedU32<MAX>) -> Self
fn from(value: LimitedU32<MAX>) -> Self
Converts to this type from the input type.
source§impl<const MAX: u32> PartialEq for LimitedU32<MAX>
impl<const MAX: u32> PartialEq for LimitedU32<MAX>
source§fn eq(&self, other: &LimitedU32<MAX>) -> bool
fn eq(&self, other: &LimitedU32<MAX>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const MAX: u32> Serialize for LimitedU32<MAX>
impl<const MAX: u32> Serialize for LimitedU32<MAX>
impl<const MAX: u32> Copy for LimitedU32<MAX>
impl<const MAX: u32> Eq for LimitedU32<MAX>
impl<const MAX: u32> StructuralPartialEq for LimitedU32<MAX>
Auto Trait Implementations§
impl<const MAX: u32> RefUnwindSafe for LimitedU32<MAX>
impl<const MAX: u32> Send for LimitedU32<MAX>
impl<const MAX: u32> Sync for LimitedU32<MAX>
impl<const MAX: u32> Unpin for LimitedU32<MAX>
impl<const MAX: u32> UnwindSafe for LimitedU32<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