Struct beetle_nonzero::NonZero
source · pub struct NonZero<T: PrimUint> { /* private fields */ }Expand description
A wrapper around a primitive non-zero integer like i32 or u32.
Implementations§
Trait Implementations§
source§impl<T: PrimUint> AddAssign<NonZero<T>> for NonZero<T>
impl<T: PrimUint> AddAssign<NonZero<T>> for NonZero<T>
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl<T: PrimUint> DivAssign<NonZero<T>> for NonZero<T>
impl<T: PrimUint> DivAssign<NonZero<T>> for NonZero<T>
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moresource§impl<T: PrimUint> MulAssign<NonZero<T>> for NonZero<T>
impl<T: PrimUint> MulAssign<NonZero<T>> for NonZero<T>
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moresource§impl<T: Ord + PrimUint> Ord for NonZero<T>
impl<T: Ord + PrimUint> 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 + PrimUint> PartialEq<NonZero<T>> for NonZero<T>
impl<T: PartialEq + PrimUint> PartialEq<NonZero<T>> for NonZero<T>
source§impl<T: PartialOrd + PrimUint> PartialOrd<NonZero<T>> for NonZero<T>
impl<T: PartialOrd + PrimUint> 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 moresource§impl<T: PrimUint> SubAssign<NonZero<T>> for NonZero<T>
impl<T: PrimUint> SubAssign<NonZero<T>> for NonZero<T>
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl<T: Copy + PrimUint> Copy for NonZero<T>
impl<T: Eq + PrimUint> Eq for NonZero<T>
impl<T: PrimUint> StructuralEq for NonZero<T>
impl<T: PrimUint> 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