Trait num_traits::One
[−]
[src]
pub trait One: Mul<Self, Output = Self> { fn one() -> Self; }
Defines a multiplicative identity element for Self
.
Required Methods
fn one() -> Self
Implementations on Foreign Types
impl One for f64
[src]
impl One for i16
[src]
impl<T> One for Wrapping<T> where
T: One,
Wrapping<T>: Mul<Wrapping<T>>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,
[src]
T: One,
Wrapping<T>: Mul<Wrapping<T>>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,