Struct beetle_collatz::NonZero
source · pub struct NonZero<T: Collatz>(_);Expand description
Represents a single non-zero unsigned integer, which can be used with the functions in this crate
Implementations§
Trait Implementations§
source§impl<T: Ord + Collatz> Ord for NonZero<T>
impl<T: Ord + Collatz> Ord for NonZero<T>
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<T: PartialEq + Collatz> PartialEq<NonZero<T>> for NonZero<T>
impl<T: PartialEq + Collatz> PartialEq<NonZero<T>> for NonZero<T>
source§impl<T: PartialOrd + Collatz> PartialOrd<NonZero<T>> for NonZero<T>
impl<T: PartialOrd + Collatz> PartialOrd<NonZero<T>> for NonZero<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T: Eq + Collatz> Eq for NonZero<T>
impl<T: Collatz> StructuralEq for NonZero<T>
impl<T: Collatz> StructuralPartialEq for NonZero<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for NonZero<T>where T: RefUnwindSafe,
impl<T> Send for NonZero<T>where T: Send,
impl<T> Sync for NonZero<T>where T: Sync,
impl<T> Unpin for NonZero<T>where T: Unpin,
impl<T> UnwindSafe for NonZero<T>where T: UnwindSafe,
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