[−][src]Trait num_traits::identities::One
Defines a multiplicative identity element for Self
.
Required methods
fn one() -> Self
Provided methods
fn is_one(&self) -> bool where
Self: PartialEq,
Self: PartialEq,
Returns true
if self
is equal to the multiplicative identity.
For performance reasons, it's best to implement this manually.
After a semver bump, this method will be required, and the
where Self: PartialEq
bound will be removed.
Implementations on Foreign Types
impl<T: One> One for Wrapping<T> where
Wrapping<T>: Mul<Output = Wrapping<T>>,
[src]
Loading content...
Wrapping<T>: Mul<Output = Wrapping<T>>,