[][src]Trait fts_units::ops::ReduceWith

pub trait ReduceWith<T> {
    type Output;
    fn reduce_with(self, other: T) -> Self::Output;
}

Helper to reduce Ratios to RatioZero when Exponent becomes zero

Associated Types

type Output

Loading content...

Required methods

fn reduce_with(self, other: T) -> Self::Output

Loading content...

Implementors

impl<E> ReduceWith<E> for RatioZero[src]

type Output = RatioZero

impl<L, M, T, E> ReduceWith<E> for SIRatiosT<L, M, T> where
    L: Ratio + ReduceWith<E::Length>,
    M: Ratio + ReduceWith<E::Mass>,
    T: Ratio + ReduceWith<E::Time>,
    E: SIExponents,
    ReduceWithOutput<L, E::Length>: Ratio + Default,
    ReduceWithOutput<M, E::Mass>: Ratio + Default,
    ReduceWithOutput<T, E::Time>: Ratio + Default
[src]

type Output = SIRatiosT<ReduceWithOutput<L, E::Length>, ReduceWithOutput<M, E::Mass>, ReduceWithOutput<T, E::Time>>

impl<N, D> ReduceWith<Z0> for RatioT<N, D> where
    Self: Default,
    N: Integer + NonZero,
    D: Integer + NonZero
[src]

type Output = RatioZero

impl<N, D, U> ReduceWith<NInt<U>> for RatioT<N, D> where
    Self: Default,
    N: Integer + NonZero,
    D: Integer + NonZero,
    U: Unsigned + NonZero
[src]

type Output = Self

impl<N, D, U> ReduceWith<PInt<U>> for RatioT<N, D> where
    Self: Default,
    N: Integer + NonZero,
    D: Integer + NonZero,
    U: Unsigned + NonZero
[src]

type Output = Self

Loading content...