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 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: 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> FromStr for LimitedNonZeroU16<MAX>
impl<const MAX: u16> FromStr for LimitedNonZeroU16<MAX>
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§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.