[][src]Struct uom::si::fmt::QuantityArguments

pub struct QuantityArguments<D: ?Sized, U: ?Sized, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V>,
    N: Unit
{ /* fields omitted */ }

A struct to specify a display style and unit for a given quantity.

let l = Length::new::<meter>(1.0);
let a = l.into_format_args(centimeter, Description);

assert_eq!("100 centimeters", format!("{}", a));

Generic Parameters

  • D: Dimension.
  • U: Base units.
  • V: Value underlying storage type.
  • N: Unit.

Trait Implementations

impl<D: ?Sized, U: ?Sized, V, N> Binary for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + Binary,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> Clone for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + Clone,
    N: Unit
[src]

impl<D: ?Sized, U: ?Sized, V, N> Copy for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + Copy,
    N: Unit
[src]

impl<D: ?Sized, U: ?Sized, V, N> Debug for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + Debug,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> Display for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + Display,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> LowerExp for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + LowerExp,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> LowerHex for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + LowerHex,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> Octal for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + Octal,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> UpperExp for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + UpperExp,
    N: Unit + Conversion<V, T = V::T>, 
[src]

impl<D: ?Sized, U: ?Sized, V, N> UpperHex for QuantityArguments<D, U, V, N> where
    D: Dimension,
    U: Units<V>,
    V: Num + Conversion<V> + UpperHex,
    N: Unit + Conversion<V, T = V::T>, 
[src]

Auto Trait Implementations

impl<D: ?Sized, U: ?Sized, V, N> RefUnwindSafe for QuantityArguments<D, U, V, N> where
    D: RefUnwindSafe,
    N: RefUnwindSafe,
    U: RefUnwindSafe,
    V: RefUnwindSafe

impl<D: ?Sized, U: ?Sized, V, N> Send for QuantityArguments<D, U, V, N> where
    N: Send,
    V: Send

impl<D: ?Sized, U: ?Sized, V, N> Sync for QuantityArguments<D, U, V, N> where
    N: Sync,
    V: Sync

impl<D: ?Sized, U: ?Sized, V, N> Unpin for QuantityArguments<D, U, V, N> where
    D: Unpin,
    N: Unpin,
    U: Unpin,
    V: Unpin

impl<D: ?Sized, U: ?Sized, V, N> UnwindSafe for QuantityArguments<D, U, V, N> where
    D: UnwindSafe,
    N: UnwindSafe,
    U: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.