Trait std::num::One [] [src]

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

: no longer used for Iterator::product

🔬 This is a nightly-only experimental API.   (zero_one)

unsure of placement, wants to use associated constants

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

Deprecated since 1.11.0

: no longer used for Iterator::product

🔬 This is a nightly-only experimental API.   (zero_one)

unsure of placement, wants to use associated constants

The "one" (usually, multiplicative identity) for this type.

Implementors