pub struct NonValueUsize<const N: usize>(/* private fields */);Expand description
Implementations§
Trait Implementations§
Source§impl<const N: usize> Binary for NonValueUsize<N>
impl<const N: usize> Binary for NonValueUsize<N>
Source§impl BitAnd for NonValueUsize<{ usize::MAX }>
impl BitAnd for NonValueUsize<{ usize::MAX }>
Source§impl BitAnd<NonValueUsize<{ $prim::MAX }>> for usize
impl BitAnd<NonValueUsize<{ $prim::MAX }>> for usize
Source§type Output = NonValueUsize<{ $prim::MAX }>
type Output = NonValueUsize<{ $prim::MAX }>
The resulting type after applying the
& operator.Source§impl BitAnd<usize> for NonValueUsize<{ usize::MAX }>
impl BitAnd<usize> for NonValueUsize<{ usize::MAX }>
Source§impl BitAndAssign for NonValueUsize<{ usize::MAX }>
impl BitAndAssign for NonValueUsize<{ usize::MAX }>
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitAndAssign<NonValueUsize<{ $prim::MAX }>> for usize
impl BitAndAssign<NonValueUsize<{ $prim::MAX }>> for usize
Source§fn bitand_assign(&mut self, rhs: NonValueUsize<{ usize::MAX }>)
fn bitand_assign(&mut self, rhs: NonValueUsize<{ usize::MAX }>)
Performs the
&= operation. Read moreSource§impl BitAndAssign<usize> for NonValueUsize<{ usize::MAX }>
impl BitAndAssign<usize> for NonValueUsize<{ usize::MAX }>
Source§fn bitand_assign(&mut self, rhs: usize)
fn bitand_assign(&mut self, rhs: usize)
Performs the
&= operation. Read moreSource§impl<const N: usize> Clone for NonValueUsize<N>
impl<const N: usize> Clone for NonValueUsize<N>
impl<const N: usize> Copy for NonValueUsize<N>
Source§impl<const N: usize> Debug for NonValueUsize<N>
impl<const N: usize> Debug for NonValueUsize<N>
Source§impl Default for NonValueUsize<{ usize::MAX }>
impl Default for NonValueUsize<{ usize::MAX }>
Source§impl<'de, const N: usize> Deserialize<'de> for NonValueUsize<N>
Available on crate feature serde only.
impl<'de, const N: usize> Deserialize<'de> for NonValueUsize<N>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> Display for NonValueUsize<N>
impl<const N: usize> Display for NonValueUsize<N>
impl<const N: usize> Eq for NonValueUsize<N>
Source§impl From<NonValueUsize<0>> for NonZeroUsize
impl From<NonValueUsize<0>> for NonZeroUsize
Source§fn from(value: NonValueUsize<0>) -> Self
fn from(value: NonValueUsize<0>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<NonValueUsize<N>> for usize
impl<const N: usize> From<NonValueUsize<N>> for usize
Source§fn from(value: NonValueUsize<N>) -> Self
fn from(value: NonValueUsize<N>) -> Self
Converts to this type from the input type.
Source§impl From<NonZero<usize>> for NonValueUsize<0>
impl From<NonZero<usize>> for NonValueUsize<0>
Source§fn from(value: NonZeroUsize) -> Self
fn from(value: NonZeroUsize) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> FromStr for NonValueUsize<N>
impl<const N: usize> FromStr for NonValueUsize<N>
Source§impl<const N: usize> Hash for NonValueUsize<N>
impl<const N: usize> Hash for NonValueUsize<N>
Source§impl<const N: usize> LowerHex for NonValueUsize<N>
impl<const N: usize> LowerHex for NonValueUsize<N>
Source§impl<const N: usize> Octal for NonValueUsize<N>
impl<const N: usize> Octal for NonValueUsize<N>
Source§impl<const N: usize> Ord for NonValueUsize<N>
impl<const N: usize> Ord for NonValueUsize<N>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const N: usize> PartialEq for NonValueUsize<N>
impl<const N: usize> PartialEq for NonValueUsize<N>
Source§impl<const N: usize> PartialOrd for NonValueUsize<N>
impl<const N: usize> PartialOrd for NonValueUsize<N>
Source§impl<const N: usize> Serialize for NonValueUsize<N>
Available on crate feature serde only.
impl<const N: usize> Serialize for NonValueUsize<N>
Available on crate feature
serde only.impl<const N: usize> StructuralPartialEq for NonValueUsize<N>
Auto Trait Implementations§
impl<const N: usize> Forget for NonValueUsize<N>
impl<const N: usize> Freeze for NonValueUsize<N>
impl<const N: usize> Move for NonValueUsize<N>
impl<const N: usize> RefUnwindSafe for NonValueUsize<N>
impl<const N: usize> Send for NonValueUsize<N>
impl<const N: usize> Sync for NonValueUsize<N>
impl<const N: usize> Unpin for NonValueUsize<N>
impl<const N: usize> UnsafeUnpin for NonValueUsize<N>where
NonZeroUsizeInner: UnsafeUnpin,
impl<const N: usize> UnwindSafe for NonValueUsize<N>
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