Trait core::num::One
[−]
[src]
pub trait One {
fn one() -> Self;
}Unstable
: unsure of placement, wants to use associated constants
Types that have a "one" value.
This trait is intended for use in conjunction with Mul`Mul, as an identity:`, as an identity:
x * T::one() == x`x * T::one() == x`.
Required Methods
fn one() -> Self
Unstable
: unsure of placement, wants to use associated constants
The "one" (usually, multiplicative identity) for this type.