pub struct NonZeroOrMaxU32(/* private fields */);
Expand description
A u32
value that is guaranteed to be greater than 0 and less than u32::MAX
.
Implementations§
Trait Implementations§
Source§impl Clone for NonZeroOrMaxU32
impl Clone for NonZeroOrMaxU32
Source§fn clone(&self) -> NonZeroOrMaxU32
fn clone(&self) -> NonZeroOrMaxU32
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 Debug for NonZeroOrMaxU32
impl Debug for NonZeroOrMaxU32
Source§impl Ord for NonZeroOrMaxU32
impl Ord for NonZeroOrMaxU32
Source§fn cmp(&self, other: &NonZeroOrMaxU32) -> Ordering
fn cmp(&self, other: &NonZeroOrMaxU32) -> Ordering
1.21.0 · 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
Source§impl PartialEq for NonZeroOrMaxU32
impl PartialEq for NonZeroOrMaxU32
Source§impl PartialOrd for NonZeroOrMaxU32
impl PartialOrd for NonZeroOrMaxU32
impl Copy for NonZeroOrMaxU32
impl Eq for NonZeroOrMaxU32
impl StructuralPartialEq for NonZeroOrMaxU32
Auto Trait Implementations§
impl Freeze for NonZeroOrMaxU32
impl RefUnwindSafe for NonZeroOrMaxU32
impl Send for NonZeroOrMaxU32
impl Sync for NonZeroOrMaxU32
impl Unpin for NonZeroOrMaxU32
impl UnwindSafe for NonZeroOrMaxU32
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
)