1 2 3 4 5 6 7 8 9 10 11 12
//! # traits::one //! //! Types that implement this trait have the concept of ONE. /// Concept of ONE. pub trait One { /// Return the ONE number. fn one() -> Self; /// Validate whether a number is ONE. fn is_one(&self) -> bool; }