[−]Trait astral::math::num::NonZero
Functions for primitive type, which has a non-zero correspondant.
Associated Types
type Int: PrimUnsignedInt
The primitive unsigned int correspondant.
Required methods
unsafe fn new_unchecked(n: Self::Int) -> Self
fn new(n: Self::Int) -> Option<Self>
Create a non-zero if the given value is not zero.
fn get(self) -> Self::Int
Returns the value as the primitive type.