[−][src]Trait fraction::One
Defines a multiplicative identity element for Self
.
Required Methods
fn one() -> Self
Provided Methods
fn is_one(&self) -> bool where
Self: PartialEq<Self>,
Self: PartialEq<Self>,
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 One for u16
[src]
impl One for u16
impl One for i16
[src]
impl One for i16
impl One for f32
[src]
impl One for f32
impl One for f64
[src]
impl One for f64
impl One for i8
[src]
impl One for i8
impl One for i32
[src]
impl One for i32
impl One for usize
[src]
impl One for usize
impl<T> One for Wrapping<T> where
T: One,
Wrapping<T>: Mul<Wrapping<T>>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,
[src]
impl<T> One for Wrapping<T> where
T: One,
Wrapping<T>: Mul<Wrapping<T>>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,
impl One for i64
[src]
impl One for i64
impl One for u32
[src]
impl One for u32
impl One for u64
[src]
impl One for u64
impl One for isize
[src]
impl One for isize
impl One for i128
[src]
impl One for i128
impl One for u128
[src]
impl One for u128
impl One for u8
[src]
impl One for u8
impl<T> One for Complex<T> where
T: Clone + Num,
[src]
impl<T> One for Complex<T> where
T: Clone + Num,
Implementors
impl One for BigInt
[src]
impl One for BigInt
impl One for BigUint
[src]
impl One for BigUint
impl<T> One for Ratio<T> where
T: Clone + Integer,
[src]
impl<T> One for Ratio<T> where
T: Clone + Integer,
impl<T, G> One for DynaInt<T, G> where
T: Copy + GenericInteger + Into<G> + TryToConvertFrom<G> + From<u8>,
G: Clone + GenericInteger,
[src]
impl<T, G> One for DynaInt<T, G> where
T: Copy + GenericInteger + Into<G> + TryToConvertFrom<G> + From<u8>,
G: Clone + GenericInteger,
impl<T, P> One for GenericDecimal<T, P> where
T: Clone + GenericInteger,
P: Copy + GenericInteger + Into<usize>,
[src]
impl<T, P> One for GenericDecimal<T, P> where
T: Clone + GenericInteger,
P: Copy + GenericInteger + Into<usize>,
impl<T: Clone + Integer> One for GenericFraction<T>
[src]
impl<T: Clone + Integer> One for GenericFraction<T>