Trait One
rangetree
pub trait One: Sized { fn one() -> Self; }
Unit value (predefined as 1 for integer types).
fn one() -> Self
impl One for u8
impl One for u16
impl One for u32
impl One for u64
impl One for usize
impl One for i8
impl One for i16
impl One for i32
impl One for i64
impl One for isize