[][src]Struct fts_units::ratio::RatioT

pub struct RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
{ /* fields omitted */ }

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]

type Output = RatioZero

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

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> Xor<RatioT<N, D>> for RatioT<N, D> where
    N: Integer + NonZero,
    D: Integer + NonZero,
    RatioT<N, D>: Default
[src]

type Output = RatioT<N, D>

impl<N, D> Xor<RatioZero> for RatioT<N, D> where
    N: Integer + NonZero,
    D: Integer + NonZero,
    RatioT<N, D>: Default
[src]

type Output = RatioT<N, D>

impl<N, D> Xor<RatioT<N, D>> for RatioZero where
    N: Integer + NonZero,
    D: Integer + NonZero,
    RatioT<N, D>: Default
[src]

type Output = RatioT<N, D>

impl<NUM, DEN> Ratio for RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
[src]

impl<NUM: Eq, DEN: Eq> Eq for RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
[src]

impl<NUM: PartialEq, DEN: PartialEq> PartialEq<RatioT<NUM, DEN>> for RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
[src]

impl<NUM: Copy, DEN: Copy> Copy for RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
[src]

impl<NUM: Clone, DEN: Clone> Clone for RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
[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]

impl<NUM: Debug, DEN: Debug> Debug for RatioT<NUM, DEN> where
    NUM: Integer + NonZero,
    DEN: Integer + NonZero
[src]

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

Auto Trait Implementations

impl<NUM, DEN> Send for RatioT<NUM, DEN> where
    DEN: Send,
    NUM: Send

impl<NUM, DEN> Sync for RatioT<NUM, DEN> where
    DEN: Sync,
    NUM: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self