[−][src]Trait nummap::NonZero
A marker trait for types which are NonZero
numbers.
Required methods
fn new(num: Num) -> Option<Self>
Constructs a new value returning None
for 0
.
unsafe fn new_unchecked(num: Num) -> Self
Constructs a new value assuming it is not 0
.
fn get(self) -> Num
Gets the inner value.