pub struct QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V>,
N: Unit, { /* private fields */ }
Expand description
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, U, V, N> Binary for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Binary,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Binary for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Binary,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Debug for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Debug,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Debug for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Debug,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Display for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Display,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Display for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Display,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> LowerExp for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + LowerExp,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> LowerExp for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + LowerExp,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> LowerHex for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + LowerHex,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> LowerHex for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + LowerHex,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Octal for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Octal,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> Octal for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Octal,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> UpperExp for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + UpperExp,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> UpperExp for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + UpperExp,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> UpperHex for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + UpperHex,
N: Unit + Conversion<V, T = V::T>,
impl<D, U, V, N> UpperHex for QuantityArguments<D, U, V, N> where
D: Dimension + ?Sized,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + UpperHex,
N: Unit + Conversion<V, T = V::T>,
Auto Trait Implementations
impl<D: ?Sized, U: ?Sized, V, N> RefUnwindSafe for QuantityArguments<D, U, V, N> where
N: RefUnwindSafe,
V: RefUnwindSafe,
impl<D: ?Sized, U: ?Sized, V, N> UnwindSafe for QuantityArguments<D, U, V, N> where
N: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more