Trait nonzero_ext::NonZero
source · pub trait NonZero {
type Primitive;
// Required methods
fn new(n: Self::Primitive) -> Option<Self>
where Self: Sized;
fn get(self) -> Self::Primitive;
}
Expand description
A trait identifying a non-zero integral type. It is useful mostly
in order to give to genericized helper functions as impl NonZero
arguments.