Trait num_traits::One [] [src]

pub trait One {
    fn one() -> Self;
}

Types that have a one value.

This trait is intended for use in conjunction with Mul, as an identity: x * T::one() == x.

Required Methods

fn one() -> Self

Returns the one (usually, multiplicative identity) for this type.

Implementors