[−][src]Struct fts_units::ratio::RatioT
Ratio type with positive, non-zero numerator and denominator.
Trait Implementations
impl<N, D> ReduceWith<Z0> for RatioT<N, D> where
Self: Default,
N: Integer + NonZero,
D: Integer + NonZero,
[src]
Self: Default,
N: Integer + NonZero,
D: Integer + NonZero,
impl<N, D, U> ReduceWith<PInt<U>> for RatioT<N, D> where
Self: Default,
N: Integer + NonZero,
D: Integer + NonZero,
U: Unsigned + NonZero,
[src]
Self: Default,
N: Integer + NonZero,
D: Integer + NonZero,
U: Unsigned + NonZero,
type Output = Self
fn reduce_with(self, _other: PInt<U>) -> Self::Output
[src]
impl<N, D, U> ReduceWith<NInt<U>> for RatioT<N, D> where
Self: Default,
N: Integer + NonZero,
D: Integer + NonZero,
U: Unsigned + NonZero,
[src]
Self: Default,
N: Integer + NonZero,
D: Integer + NonZero,
U: Unsigned + NonZero,
type Output = Self
fn reduce_with(self, _other: NInt<U>) -> Self::Output
[src]
impl<N, D> Xor<RatioT<N, D>> for RatioT<N, D> where
N: Integer + NonZero,
D: Integer + NonZero,
RatioT<N, D>: Default,
[src]
N: Integer + NonZero,
D: Integer + NonZero,
RatioT<N, D>: Default,
impl<N, D> Xor<RatioZero> for RatioT<N, D> where
N: Integer + NonZero,
D: Integer + NonZero,
RatioT<N, D>: Default,
[src]
N: Integer + NonZero,
D: Integer + NonZero,
RatioT<N, D>: Default,
impl<N, D> Xor<RatioT<N, D>> for RatioZero where
N: Integer + NonZero,
D: Integer + NonZero,
RatioT<N, D>: Default,
[src]
N: Integer + NonZero,
D: Integer + NonZero,
RatioT<N, D>: Default,
impl<NUM, DEN> Ratio for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
impl<NUM: Eq, DEN: Eq> Eq for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
impl<NUM: PartialEq, DEN: PartialEq> PartialEq<RatioT<NUM, DEN>> for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
fn eq(&self, other: &RatioT<NUM, DEN>) -> bool
[src]
fn ne(&self, other: &RatioT<NUM, DEN>) -> bool
[src]
impl<NUM: Copy, DEN: Copy> Copy for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
impl<NUM: Clone, DEN: Clone> Clone for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
fn clone(&self) -> RatioT<NUM, DEN>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<NUM: Default, DEN: Default> Default for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
impl<NUM: Debug, DEN: Debug> Debug for RatioT<NUM, DEN> where
NUM: Integer + NonZero,
DEN: Integer + NonZero,
[src]
NUM: Integer + NonZero,
DEN: Integer + NonZero,
impl<N, D> NonZero for RatioT<N, D> where
N: Integer + NonZero,
D: Integer + NonZero,
[src]
N: Integer + NonZero,
D: Integer + NonZero,
Auto Trait Implementations
impl<NUM, DEN> Send for RatioT<NUM, DEN> where
DEN: Send,
NUM: Send,
DEN: Send,
NUM: Send,
impl<NUM, DEN> Sync for RatioT<NUM, DEN> where
DEN: Sync,
NUM: Sync,
DEN: Sync,
NUM: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self