[][src]Struct fts_units::quantity::QuantityT

pub struct QuantityT<T, U> where
    T: Amount
{ /* fields omitted */ }

Foundational struct used by all run-time quantities.

Methods

impl<T, U> QuantityT<T, U> where
    T: Amount
[src]

pub fn new(amount: T) -> QuantityT<T, U>[src]

Trait Implementations

impl<T, U> Invert for QuantityT<T, U> where
    T: Invert + Amount,
    U: Invert,
    InvertOutput<T>: Amount
[src]

impl<T, U> Sqrt for QuantityT<T, U> where
    T: Float + Amount,
    U: Sqrt
[src]

type Output = QuantityT<T, SqrtOutput<U>>

impl<T, U> Quantity for QuantityT<T, U> where
    T: Amount
[src]

type AmountType = T

type UnitsType = U

impl<T, R1, R2, E> ConvertUnits<QuantityT<T, SIUnitsT<R1, E>>> for QuantityT<T, SIUnitsT<R2, E>> where
    T: Amount,
    AmountT<T>: Mul<SIUnitsT<R1, E>, Output = AmountT<T>> + Div<SIUnitsT<R1, E>, Output = AmountT<T>> + Mul<SIUnitsT<R2, E>, Output = AmountT<T>> + Div<SIUnitsT<R2, E>, Output = AmountT<T>>,
    R1: SIRatios,
    R2: SIRatios,
    E: SIExponents
[src]

impl<T1, T2, U> CastAmount<QuantityT<T2, U>> for QuantityT<T1, U> where
    T1: Amount + NumCast,
    T2: Amount + NumCast
[src]

impl<T: Eq, U: Eq> Eq for QuantityT<T, U> where
    T: Amount
[src]

impl<T: PartialEq, U: PartialEq> PartialEq<QuantityT<T, U>> for QuantityT<T, U> where
    T: Amount
[src]

impl<T: Copy, U: Copy> Copy for QuantityT<T, U> where
    T: Amount
[src]

impl<T: Clone, U: Clone> Clone for QuantityT<T, U> where
    T: Amount
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

impl<T: Default, U: Default> Default for QuantityT<T, U> where
    T: Amount
[src]

impl<T: Debug, U: Debug> Debug for QuantityT<T, U> where
    T: Amount
[src]

impl<T, U> Display for QuantityT<T, U> where
    T: Display + Amount,
    U: Display + Default
[src]

impl<T, Q> Sub<QuantityT<T, Q>> for QuantityT<T, Q> where
    T: Amount + Sub<T>,
    Q: Sub<Q>,
    SubOutput<T, T>: Amount
[src]

type Output = QuantityT<SubOutput<T, T>, SubOutput<Q, Q>>

The resulting type after applying the - operator.

impl<T, Q> Add<QuantityT<T, Q>> for QuantityT<T, Q> where
    T: Amount + Add<T>,
    Q: Add<Q>,
    AddOutput<T, T>: Amount
[src]

type Output = QuantityT<AddOutput<T, T>, AddOutput<Q, Q>>

The resulting type after applying the + operator.

impl<T, Q0, Q1> Mul<QuantityT<T, Q1>> for QuantityT<T, Q0> where
    T: Amount + Mul<T>,
    Q0: Mul<Q1>,
    MulOutput<T, T>: Amount
[src]

type Output = QuantityT<MulOutput<T, T>, MulOutput<Q0, Q1>>

The resulting type after applying the * operator.

impl<T, Q0, Q1> Div<QuantityT<T, Q1>> for QuantityT<T, Q0> where
    T: Amount + Div<T>,
    Q0: Div<Q1>,
    DivOutput<T, T>: Amount
[src]

type Output = QuantityT<DivOutput<T, T>, DivOutput<Q0, Q1>>

The resulting type after applying the / operator.

Auto Trait Implementations

impl<T, U> Send for QuantityT<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for QuantityT<T, U> where
    T: Sync,
    U: 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> ToString for T where
    T: Display + ?Sized
[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