Struct atrium_api::types::LimitedNonZeroU16
source · pub struct LimitedNonZeroU16<const MAX: u16>(/* private fields */);
Expand description
An unsigned integer with a minimum value of 1 and a maximum value of MAX
.
Implementations§
Trait Implementations§
source§impl<const MAX: u16> Clone for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Clone for LimitedNonZeroU16<MAX>
source§fn clone(&self) -> LimitedNonZeroU16<MAX>
fn clone(&self) -> LimitedNonZeroU16<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: u16> Debug for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Debug for LimitedNonZeroU16<MAX>
source§impl<'de, const MAX: u16> Deserialize<'de> for LimitedNonZeroU16<MAX>
impl<'de, const MAX: u16> Deserialize<'de> for LimitedNonZeroU16<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: u16> From<LimitedNonZeroU16<MAX>> for NonZeroU16
impl<const MAX: u16> From<LimitedNonZeroU16<MAX>> for NonZeroU16
source§fn from(value: LimitedNonZeroU16<MAX>) -> Self
fn from(value: LimitedNonZeroU16<MAX>) -> Self
Converts to this type from the input type.
source§impl<const MAX: u16> From<LimitedNonZeroU16<MAX>> for u16
impl<const MAX: u16> From<LimitedNonZeroU16<MAX>> for u16
source§fn from(value: LimitedNonZeroU16<MAX>) -> Self
fn from(value: LimitedNonZeroU16<MAX>) -> Self
Converts to this type from the input type.
source§impl<const MAX: u16> Hash for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Hash for LimitedNonZeroU16<MAX>
source§impl<const MAX: u16> PartialEq for LimitedNonZeroU16<MAX>
impl<const MAX: u16> PartialEq for LimitedNonZeroU16<MAX>
source§impl<const MAX: u16> Serialize for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Serialize for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Copy for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Eq for LimitedNonZeroU16<MAX>
impl<const MAX: u16> StructuralPartialEq for LimitedNonZeroU16<MAX>
Auto Trait Implementations§
impl<const MAX: u16> Freeze for LimitedNonZeroU16<MAX>
impl<const MAX: u16> RefUnwindSafe for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Send for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Sync for LimitedNonZeroU16<MAX>
impl<const MAX: u16> Unpin for LimitedNonZeroU16<MAX>
impl<const MAX: u16> UnwindSafe for LimitedNonZeroU16<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.