Trait core::num::One
[−]
[src]
pub trait One: Sized {
fn one() -> Self;
}Deprecated since 1.11.0
: no longer used for Iterator::product
🔬 This is a nightly-only experimental API. (zero_one #27739)
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
fn one() -> Self
Deprecated since 1.11.0
: no longer used for Iterator::product
🔬 This is a nightly-only experimental API. (zero_one #27739)
unsure of placement, wants to use associated constants
The "one" (usually, multiplicative identity) for this type.
Implementors
impl One for u8impl One for u16impl One for u32impl One for u64impl One for usizeimpl One for i8impl One for i16impl One for i32impl One for i64impl One for isizeimpl One for u128impl One for i128impl One for f32impl One for f64