pub trait One { // Required methods fn one() -> Self; fn is_one(&self) -> bool; }
A trait pretty much similar to num_traits::One, but without the need of implementing Mul.
Mul
Reutrns the one value.
Returns whether this value is one.