[][src]Trait fts_units::quantity::Quantity

pub trait Quantity {
    type AmountType: Amount;
    type UnitsType;
    fn new(amount: Self::AmountType) -> Self;
fn amount(&self) -> Self::AmountType; }

Helper for performing generic computations with QuantityT<T,U> types.

Associated Types

Loading content...

Required methods

fn new(amount: Self::AmountType) -> Self

fn amount(&self) -> Self::AmountType

Loading content...

Implementors

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

type AmountType = T

type UnitsType = U

Loading content...