Struct blackbox_log::units::si::Quantity
#[repr(transparent)]pub struct Quantity<D, U, V>{
pub dimension: PhantomData<D>,
pub units: PhantomData<U>,
pub value: V,
}
Expand description
Property of a phenomenon, body or substance, where the property has a magnitude that can be expressed as a number and a reference.
The preferred method of creating a Quantity
instance is to use the new
constructor
which is generic over the input unit and accepts the input value as it’s only
parameter.
// Create a length of 1 meter.
let l = Length::new::<meter>(1.0);
Quantity
fields are public to allow for the creation of const
values and instances
of non-named Quantity
s. This functionality will be deprecated and subsequently removed
once the const fn
feature is
stabilized.
// Create a `const` length of 1 meter.
const L: Length = Length { dimension: PhantomData, units: PhantomData, value: 1.0, };
// Create a `const` area of 1 square meter explicitly without using the `Area` alias.
const A: Quantity<ISQ<P2, Z0, Z0, Z0, Z0, Z0, Z0>, SI<f32>, f32> =
Quantity { dimension: PhantomData, units: PhantomData, value: 1.0, };
Using units for the wrong quantity will cause a compile error:
// error[E0277]: the trait bound `second: length::Unit` is not satisfied
let l = Length::new::<second>(1.0);
Mixing quantities will also cause a compile error:
// error[E0308]: mismatched types
let r = Length::new::<meter>(1.0) + Time::new::<second>(1.0);
// error[E0308]: mismatched types
let v: Velocity = Length::new::<meter>(1.0) * Time::new::<second>(1.0);
§Generic Parameters
Fields§
§dimension: PhantomData<D>
Quantity dimension. See Dimension
.
units: PhantomData<U>
Quantity base units. See Units
.
value: V
Quantity value stored in the base units for the quantity.
Implementations§
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>
impl Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>
pub const HALF_TURN: Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64> = _
pub const HALF_TURN: Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64> = _
A half turn, i.e. an angle with a value of π as measured in radians
pub const FULL_TURN: Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64> = _
pub const FULL_TURN: Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64> = _
A full turn, i.e. an angle with a value of 2π as measured in radians
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Implementation of various stdlib trigonometric functions
pub fn cos(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn cos( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the cosine of the angle.
pub fn cosh(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn cosh( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the hyperbolic cosine of the angle.
pub fn sin(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn sin( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the sine of the angle.
pub fn sinh(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn sinh( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the hyperbolic sine of the angle.
pub fn sin_cos(
self
) -> (Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>, Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>)
pub fn sin_cos( self ) -> (Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>, Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>)
Computes the value of both the sine and cosine of the angle.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Implementation of various stdlib functions.
pub fn acos(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn acos( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the inverse cosine of the ratio.
pub fn acosh(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn acosh( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the inverse hyperbolic cosine of the ratio.
pub fn asin(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn asin( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the inverse sine of the ratio.
pub fn asinh(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn asinh( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the inverse hyperbolic sine of the ratio.
pub fn atan(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn atan( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the inverse tangent of the ratio.
pub fn atanh(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn atanh( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Computes the value of the inverse hyperbolic tangent of the ratio.
pub fn exp(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn exp( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns e^(self)
, (the exponential function).
pub fn exp2(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn exp2( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns 2^(self).
pub fn ln(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ln( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the natural logarithm of the number.
pub fn log(
self,
base: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn log( self, base: V ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the logarithm of the number with respect to an arbitrary base.
The result might not be correctly rounded owing to implementation details; self.log2() can produce more accurate results for base 2, and self.log10() can produce more accurate results for base 10.
pub fn log2(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn log2( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the base 2 logarithm of the number.
pub fn log10(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn log10( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the base 10 logarithm of the number.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>
impl Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64>
pub const SPHERE: Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64> = _
pub const SPHERE: Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, dyn Units<f64, mass = kilogram, time = second, electric_current = ampere, length = meter, amount_of_substance = mole, thermodynamic_temperature = kelvin, luminous_intensity = candela>, f64> = _
The solid angle subtended by a sphere at its center, i.e. with a value 4π as measured in steradians.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the largest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn ceil<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the smallest integer less than or equal to a number in the given measurement unit.
§Generic Parameters
N
: Unit.
pub fn round<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
Returns the nearest integer to a number in the in given measurement unit. Round half-way cases away from 0.0.
§Generic Parameters
N
: Unit.
pub fn trunc<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self
) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self ) -> Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle
) -> Arguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
Creates a struct that can be used to format a compatible quantity for display.
§Notes
The return value of this method cannot be used to print directly, but is instead used to format quantities and can be reused; see Arguments::with and the examples below.
If you do not need to format multiple quantities, consider using
into_format_args
instead.
§Examples
let t1 = Time::new::<femtosecond>(1.0_E-1);
let t2 = Time::new::<picosecond>(1.0_E-1);
let a = Time::format_args(femtosecond, Description);
assert_eq!("0.1 femtoseconds", format!("{}", a.with(t1)));
assert_eq!("100 femtoseconds", format!("{}", a.with(t2)));
§Generic Parameters
N
: Unit.
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle
) -> QuantityArguments<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, V, N>where
N: Unit,
Creates a struct that formats self
for display.
§Notes
Unlike format_args
, the return value of this method can be
used directly for display. It will format the value of self
for the quantity on
which it is called and nothing else.
If you wish to reuse the return value to format multiple quantities, use
format_args
instead.
§Examples
let t = Time::new::<picosecond>(1.0_E-1);
let a = t.into_format_args(femtosecond, Description);
assert_eq!("100 femtoseconds", format!("{}", a));
§Generic Parameters
N
: Unit.
§impl<D, U, V> Quantity<D, U, V>
impl<D, U, V> Quantity<D, U, V>
pub fn classify(self) -> FpCategorywhere
V: Float,
pub fn classify(self) -> FpCategorywhere
V: Float,
Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead.
pub fn hypot(self, other: Quantity<D, U, V>) -> Quantity<D, U, V>where
V: Float,
pub fn hypot(self, other: Quantity<D, U, V>) -> Quantity<D, U, V>where
V: Float,
Calculates the length of the hypotenuse of a right-angle triangle given the legs.
pub fn abs(self) -> Quantity<D, U, V>where
V: Signed,
pub fn abs(self) -> Quantity<D, U, V>where
V: Signed,
Computes the absolute value of self
. Returns NAN
if the quantity is
NAN
.
pub fn signum(self) -> Quantity<D, U, V>where
V: Signed,
pub fn signum(self) -> Quantity<D, U, V>where
V: Signed,
Returns a quantity that represents the sign of self
.
1.0
of the base unit if the number is positive,+0.0
, orINFINITY
.-1.0
of the base unit if the number is negative,-0.0
, orNEG_INFINITY
.NAN
if the number isNAN
.
pub fn is_sign_positive(self) -> boolwhere
V: Float,
pub fn is_sign_positive(self) -> boolwhere
V: Float,
Returns true
if self
’s sign bit is positive, including +0.0
and
INFINITY
.
pub fn is_sign_negative(self) -> boolwhere
V: Float,
pub fn is_sign_negative(self) -> boolwhere
V: Float,
Returns true
if self
’s sign is negative, including -0.0
and
NEG_INFINITY
.
pub fn recip(
self
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Neg>::Output, N = <<D as Dimension>::N as Neg>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Neg>::Output, T = <<D as Dimension>::T as Neg>::Output, L = <<D as Dimension>::L as Neg>::Output, M = <<D as Dimension>::M as Neg>::Output, J = <<D as Dimension>::J as Neg>::Output>, U, V>where
<D as Dimension>::L: Neg,
<<D as Dimension>::L as Neg>::Output: Integer,
<D as Dimension>::M: Neg,
<<D as Dimension>::M as Neg>::Output: Integer,
<D as Dimension>::T: Neg,
<<D as Dimension>::T as Neg>::Output: Integer,
<D as Dimension>::I: Neg,
<<D as Dimension>::I as Neg>::Output: Integer,
<D as Dimension>::Th: Neg,
<<D as Dimension>::Th as Neg>::Output: Integer,
<D as Dimension>::N: Neg,
<<D as Dimension>::N as Neg>::Output: Integer,
<D as Dimension>::J: Neg,
<<D as Dimension>::J as Neg>::Output: Integer,
<D as Dimension>::Kind: Div,
V: Float,
pub fn recip(
self
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Neg>::Output, N = <<D as Dimension>::N as Neg>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Neg>::Output, T = <<D as Dimension>::T as Neg>::Output, L = <<D as Dimension>::L as Neg>::Output, M = <<D as Dimension>::M as Neg>::Output, J = <<D as Dimension>::J as Neg>::Output>, U, V>where
<D as Dimension>::L: Neg,
<<D as Dimension>::L as Neg>::Output: Integer,
<D as Dimension>::M: Neg,
<<D as Dimension>::M as Neg>::Output: Integer,
<D as Dimension>::T: Neg,
<<D as Dimension>::T as Neg>::Output: Integer,
<D as Dimension>::I: Neg,
<<D as Dimension>::I as Neg>::Output: Integer,
<D as Dimension>::Th: Neg,
<<D as Dimension>::Th as Neg>::Output: Integer,
<D as Dimension>::N: Neg,
<<D as Dimension>::N as Neg>::Output: Integer,
<D as Dimension>::J: Neg,
<<D as Dimension>::J as Neg>::Output: Integer,
<D as Dimension>::Kind: Div,
V: Float,
Takes the reciprocal (inverse) of a number, 1/x
.
let f: Frequency = Time::new::<second>(1.0).recip();
§impl<D, U> Quantity<D, U, f64>
impl<D, U> Quantity<D, U, f64>
pub fn is_infinite(self) -> bool
pub fn is_infinite(self) -> bool
Returns true
if this value is positive infinity or negative infinity and
false
otherwise.
pub fn is_normal(self) -> bool
pub fn is_normal(self) -> bool
Returns true
if the number is neither zero, infinite, subnormal, or NAN
.
pub fn cbrt(
self
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, L = <<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, J = <<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output>, U, f64>where
<D as Dimension>::L: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::M: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::T: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::I: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::Th: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::N: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::J: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::Kind: Div,
pub fn cbrt(
self
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, L = <<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, J = <<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output>, U, f64>where
<D as Dimension>::L: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::M: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::T: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::I: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::Th: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::N: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::J: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>,
<<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output: Integer,
<D as Dimension>::Kind: Div,
pub fn mul_add<Da, Ua, Ub>(
self,
a: Quantity<Da, Ua, f64>,
b: Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, J = <<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output>, Ub, f64>
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, J = <<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output>, U, f64>where
<D as Dimension>::L: Add<<Da as Dimension>::L>,
<<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output: Integer,
<D as Dimension>::M: Add<<Da as Dimension>::M>,
<<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output: Integer,
<D as Dimension>::T: Add<<Da as Dimension>::T>,
<<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output: Integer,
<D as Dimension>::I: Add<<Da as Dimension>::I>,
<<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output: Integer,
<D as Dimension>::Th: Add<<Da as Dimension>::Th>,
<<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output: Integer,
<D as Dimension>::N: Add<<Da as Dimension>::N>,
<<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output: Integer,
<D as Dimension>::J: Add<<Da as Dimension>::J>,
<<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output: Integer,
<D as Dimension>::Kind: Mul,
Da: Dimension + ?Sized,
<Da as Dimension>::Kind: Mul,
Ua: Units<f64> + ?Sized,
Ub: Units<f64> + ?Sized,
pub fn mul_add<Da, Ua, Ub>(
self,
a: Quantity<Da, Ua, f64>,
b: Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, J = <<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output>, Ub, f64>
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, J = <<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output>, U, f64>where
<D as Dimension>::L: Add<<Da as Dimension>::L>,
<<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output: Integer,
<D as Dimension>::M: Add<<Da as Dimension>::M>,
<<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output: Integer,
<D as Dimension>::T: Add<<Da as Dimension>::T>,
<<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output: Integer,
<D as Dimension>::I: Add<<Da as Dimension>::I>,
<<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output: Integer,
<D as Dimension>::Th: Add<<Da as Dimension>::Th>,
<<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output: Integer,
<D as Dimension>::N: Add<<Da as Dimension>::N>,
<<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output: Integer,
<D as Dimension>::J: Add<<Da as Dimension>::J>,
<<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output: Integer,
<D as Dimension>::Kind: Mul,
Da: Dimension + ?Sized,
<Da as Dimension>::Kind: Mul,
Ua: Units<f64> + ?Sized,
Ub: Units<f64> + ?Sized,
Fused multiply-add. Computes (self * a) + b
with only one rounding error.
This produces a more accurate result with better performance than a separate
multiplication operation followed by an add.
§Generic Parameters
Da
: Dimension for parametera
.Ua
: Base units for parametera
.Ub
: Base units for parameterb
.
pub fn powi<E>(
self,
_e: E
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Mul<E>>::Output, N = <<D as Dimension>::N as Mul<E>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Mul<E>>::Output, T = <<D as Dimension>::T as Mul<E>>::Output, L = <<D as Dimension>::L as Mul<E>>::Output, M = <<D as Dimension>::M as Mul<E>>::Output, J = <<D as Dimension>::J as Mul<E>>::Output>, U, f64>where
<D as Dimension>::L: Mul<E>,
<<D as Dimension>::L as Mul<E>>::Output: Integer,
<D as Dimension>::M: Mul<E>,
<<D as Dimension>::M as Mul<E>>::Output: Integer,
<D as Dimension>::T: Mul<E>,
<<D as Dimension>::T as Mul<E>>::Output: Integer,
<D as Dimension>::I: Mul<E>,
<<D as Dimension>::I as Mul<E>>::Output: Integer,
<D as Dimension>::Th: Mul<E>,
<<D as Dimension>::Th as Mul<E>>::Output: Integer,
<D as Dimension>::N: Mul<E>,
<<D as Dimension>::N as Mul<E>>::Output: Integer,
<D as Dimension>::J: Mul<E>,
<<D as Dimension>::J as Mul<E>>::Output: Integer,
<D as Dimension>::Kind: Mul,
E: Integer,
pub fn powi<E>(
self,
_e: E
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as Mul<E>>::Output, N = <<D as Dimension>::N as Mul<E>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as Mul<E>>::Output, T = <<D as Dimension>::T as Mul<E>>::Output, L = <<D as Dimension>::L as Mul<E>>::Output, M = <<D as Dimension>::M as Mul<E>>::Output, J = <<D as Dimension>::J as Mul<E>>::Output>, U, f64>where
<D as Dimension>::L: Mul<E>,
<<D as Dimension>::L as Mul<E>>::Output: Integer,
<D as Dimension>::M: Mul<E>,
<<D as Dimension>::M as Mul<E>>::Output: Integer,
<D as Dimension>::T: Mul<E>,
<<D as Dimension>::T as Mul<E>>::Output: Integer,
<D as Dimension>::I: Mul<E>,
<<D as Dimension>::I as Mul<E>>::Output: Integer,
<D as Dimension>::Th: Mul<E>,
<<D as Dimension>::Th as Mul<E>>::Output: Integer,
<D as Dimension>::N: Mul<E>,
<<D as Dimension>::N as Mul<E>>::Output: Integer,
<D as Dimension>::J: Mul<E>,
<<D as Dimension>::J as Mul<E>>::Output: Integer,
<D as Dimension>::Kind: Mul,
E: Integer,
pub fn sqrt(
self
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, L = <<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, J = <<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>, U, f64>where
<D as Dimension>::L: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::M: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::T: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::I: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::Th: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::N: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::J: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::Kind: Div,
pub fn sqrt(
self
) -> Quantity<dyn Dimension<Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, Kind = dyn Kind, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, L = <<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, J = <<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output>, U, f64>where
<D as Dimension>::L: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::L as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::M: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::T: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::I: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::Th: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::N: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::J: PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>,
<<D as Dimension>::J as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output: Integer,
<D as Dimension>::Kind: Div,
Trait Implementations§
§impl<U, V> Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
§type Output = Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
type Output = Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
+
operator.§fn add(
self,
rhs: Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
) -> <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>>>::Output
fn add( self, rhs: Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> ) -> <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>>>::Output
+
operation. Read more§impl<U, V> Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
§type Output = Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
type Output = Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
+
operator.§fn add(
self,
rhs: Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
) -> <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>>>::Output
fn add( self, rhs: Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> ) -> <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>>>::Output
+
operation. Read more§impl<U, V> AddAssign<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> AddAssign<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
§impl<D, U, V> AddAssign for Quantity<D, U, V>
impl<D, U, V> AddAssign for Quantity<D, U, V>
§fn add_assign(&mut self, rhs: Quantity<D, U, V>)
fn add_assign(&mut self, rhs: Quantity<D, U, V>)
+=
operation. Read more§impl<Dl, Dr, U, V> Div<Quantity<Dr, U, V>> for Quantity<Dl, U, V>where
Dl: Dimension + ?Sized,
<Dl as Dimension>::L: Sub<<Dr as Dimension>::L>,
<<Dl as Dimension>::L as Sub<<Dr as Dimension>::L>>::Output: Integer,
<Dl as Dimension>::M: Sub<<Dr as Dimension>::M>,
<<Dl as Dimension>::M as Sub<<Dr as Dimension>::M>>::Output: Integer,
<Dl as Dimension>::T: Sub<<Dr as Dimension>::T>,
<<Dl as Dimension>::T as Sub<<Dr as Dimension>::T>>::Output: Integer,
<Dl as Dimension>::I: Sub<<Dr as Dimension>::I>,
<<Dl as Dimension>::I as Sub<<Dr as Dimension>::I>>::Output: Integer,
<Dl as Dimension>::Th: Sub<<Dr as Dimension>::Th>,
<<Dl as Dimension>::Th as Sub<<Dr as Dimension>::Th>>::Output: Integer,
<Dl as Dimension>::N: Sub<<Dr as Dimension>::N>,
<<Dl as Dimension>::N as Sub<<Dr as Dimension>::N>>::Output: Integer,
<Dl as Dimension>::J: Sub<<Dr as Dimension>::J>,
<<Dl as Dimension>::J as Sub<<Dr as Dimension>::J>>::Output: Integer,
<Dl as Dimension>::Kind: Div,
Dr: Dimension + ?Sized,
<Dr as Dimension>::Kind: Div,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Div,
impl<Dl, Dr, U, V> Div<Quantity<Dr, U, V>> for Quantity<Dl, U, V>where
Dl: Dimension + ?Sized,
<Dl as Dimension>::L: Sub<<Dr as Dimension>::L>,
<<Dl as Dimension>::L as Sub<<Dr as Dimension>::L>>::Output: Integer,
<Dl as Dimension>::M: Sub<<Dr as Dimension>::M>,
<<Dl as Dimension>::M as Sub<<Dr as Dimension>::M>>::Output: Integer,
<Dl as Dimension>::T: Sub<<Dr as Dimension>::T>,
<<Dl as Dimension>::T as Sub<<Dr as Dimension>::T>>::Output: Integer,
<Dl as Dimension>::I: Sub<<Dr as Dimension>::I>,
<<Dl as Dimension>::I as Sub<<Dr as Dimension>::I>>::Output: Integer,
<Dl as Dimension>::Th: Sub<<Dr as Dimension>::Th>,
<<Dl as Dimension>::Th as Sub<<Dr as Dimension>::Th>>::Output: Integer,
<Dl as Dimension>::N: Sub<<Dr as Dimension>::N>,
<<Dl as Dimension>::N as Sub<<Dr as Dimension>::N>>::Output: Integer,
<Dl as Dimension>::J: Sub<<Dr as Dimension>::J>,
<<Dl as Dimension>::J as Sub<<Dr as Dimension>::J>>::Output: Integer,
<Dl as Dimension>::Kind: Div,
Dr: Dimension + ?Sized,
<Dr as Dimension>::Kind: Div,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Div,
§type Output = Quantity<dyn Dimension<Th = <<Dl as Dimension>::Th as Sub<<Dr as Dimension>::Th>>::Output, N = <<Dl as Dimension>::N as Sub<<Dr as Dimension>::N>>::Output, Kind = dyn Kind, I = <<Dl as Dimension>::I as Sub<<Dr as Dimension>::I>>::Output, T = <<Dl as Dimension>::T as Sub<<Dr as Dimension>::T>>::Output, L = <<Dl as Dimension>::L as Sub<<Dr as Dimension>::L>>::Output, M = <<Dl as Dimension>::M as Sub<<Dr as Dimension>::M>>::Output, J = <<Dl as Dimension>::J as Sub<<Dr as Dimension>::J>>::Output>, U, V>
type Output = Quantity<dyn Dimension<Th = <<Dl as Dimension>::Th as Sub<<Dr as Dimension>::Th>>::Output, N = <<Dl as Dimension>::N as Sub<<Dr as Dimension>::N>>::Output, Kind = dyn Kind, I = <<Dl as Dimension>::I as Sub<<Dr as Dimension>::I>>::Output, T = <<Dl as Dimension>::T as Sub<<Dr as Dimension>::T>>::Output, L = <<Dl as Dimension>::L as Sub<<Dr as Dimension>::L>>::Output, M = <<Dl as Dimension>::M as Sub<<Dr as Dimension>::M>>::Output, J = <<Dl as Dimension>::J as Sub<<Dr as Dimension>::J>>::Output>, U, V>
/
operator.§impl<D, U, V> DivAssign<V> for Quantity<D, U, V>
impl<D, U, V> DivAssign<V> for Quantity<D, U, V>
§fn div_assign(&mut self, rhs: V)
fn div_assign(&mut self, rhs: V)
/=
operation. Read more§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn AngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn AngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn ConstituentConcentrationKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn ConstituentConcentrationKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn InformationKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn InformationKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn AngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn AngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn ConstituentConcentrationKind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn ConstituentConcentrationKind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn InformationKind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn InformationKind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn SolidAngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn SolidAngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn SolidAngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn SolidAngleKind, I = I, T = T, L = L, M = M, J = J>, U, V>> for Quantity<dyn Dimension<Th = Th, N = N, Kind = dyn Kind, I = I, T = T, L = L, M = M, J = J>, U, V>
§impl<U, V> From<V> for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> From<V> for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UInt<UTerm, B1>, B0>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = NInt<UInt<UTerm, B1>>, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UInt<UTerm, B1>, B0>>, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = PInt<UInt<UTerm, B1>>, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn AngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = Z0, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn ConstituentConcentrationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn InformationKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = PInt<UInt<UTerm, B1>>, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UInt<UTerm, B1>, B0>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = NInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = NInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn SolidAngleKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str
) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str ) -> Result<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<Dl, Dr, U, V> Mul<Quantity<Dr, U, V>> for Quantity<Dl, U, V>where
Dl: Dimension + ?Sized,
<Dl as Dimension>::L: Add<<Dr as Dimension>::L>,
<<Dl as Dimension>::L as Add<<Dr as Dimension>::L>>::Output: Integer,
<Dl as Dimension>::M: Add<<Dr as Dimension>::M>,
<<Dl as Dimension>::M as Add<<Dr as Dimension>::M>>::Output: Integer,
<Dl as Dimension>::T: Add<<Dr as Dimension>::T>,
<<Dl as Dimension>::T as Add<<Dr as Dimension>::T>>::Output: Integer,
<Dl as Dimension>::I: Add<<Dr as Dimension>::I>,
<<Dl as Dimension>::I as Add<<Dr as Dimension>::I>>::Output: Integer,
<Dl as Dimension>::Th: Add<<Dr as Dimension>::Th>,
<<Dl as Dimension>::Th as Add<<Dr as Dimension>::Th>>::Output: Integer,
<Dl as Dimension>::N: Add<<Dr as Dimension>::N>,
<<Dl as Dimension>::N as Add<<Dr as Dimension>::N>>::Output: Integer,
<Dl as Dimension>::J: Add<<Dr as Dimension>::J>,
<<Dl as Dimension>::J as Add<<Dr as Dimension>::J>>::Output: Integer,
<Dl as Dimension>::Kind: Mul,
Dr: Dimension + ?Sized,
<Dr as Dimension>::Kind: Mul,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Mul,
impl<Dl, Dr, U, V> Mul<Quantity<Dr, U, V>> for Quantity<Dl, U, V>where
Dl: Dimension + ?Sized,
<Dl as Dimension>::L: Add<<Dr as Dimension>::L>,
<<Dl as Dimension>::L as Add<<Dr as Dimension>::L>>::Output: Integer,
<Dl as Dimension>::M: Add<<Dr as Dimension>::M>,
<<Dl as Dimension>::M as Add<<Dr as Dimension>::M>>::Output: Integer,
<Dl as Dimension>::T: Add<<Dr as Dimension>::T>,
<<Dl as Dimension>::T as Add<<Dr as Dimension>::T>>::Output: Integer,
<Dl as Dimension>::I: Add<<Dr as Dimension>::I>,
<<Dl as Dimension>::I as Add<<Dr as Dimension>::I>>::Output: Integer,
<Dl as Dimension>::Th: Add<<Dr as Dimension>::Th>,
<<Dl as Dimension>::Th as Add<<Dr as Dimension>::Th>>::Output: Integer,
<Dl as Dimension>::N: Add<<Dr as Dimension>::N>,
<<Dl as Dimension>::N as Add<<Dr as Dimension>::N>>::Output: Integer,
<Dl as Dimension>::J: Add<<Dr as Dimension>::J>,
<<Dl as Dimension>::J as Add<<Dr as Dimension>::J>>::Output: Integer,
<Dl as Dimension>::Kind: Mul,
Dr: Dimension + ?Sized,
<Dr as Dimension>::Kind: Mul,
U: Units<V> + ?Sized,
V: Num + Conversion<V> + Mul,
§type Output = Quantity<dyn Dimension<Th = <<Dl as Dimension>::Th as Add<<Dr as Dimension>::Th>>::Output, N = <<Dl as Dimension>::N as Add<<Dr as Dimension>::N>>::Output, Kind = dyn Kind, I = <<Dl as Dimension>::I as Add<<Dr as Dimension>::I>>::Output, T = <<Dl as Dimension>::T as Add<<Dr as Dimension>::T>>::Output, L = <<Dl as Dimension>::L as Add<<Dr as Dimension>::L>>::Output, M = <<Dl as Dimension>::M as Add<<Dr as Dimension>::M>>::Output, J = <<Dl as Dimension>::J as Add<<Dr as Dimension>::J>>::Output>, U, V>
type Output = Quantity<dyn Dimension<Th = <<Dl as Dimension>::Th as Add<<Dr as Dimension>::Th>>::Output, N = <<Dl as Dimension>::N as Add<<Dr as Dimension>::N>>::Output, Kind = dyn Kind, I = <<Dl as Dimension>::I as Add<<Dr as Dimension>::I>>::Output, T = <<Dl as Dimension>::T as Add<<Dr as Dimension>::T>>::Output, L = <<Dl as Dimension>::L as Add<<Dr as Dimension>::L>>::Output, M = <<Dl as Dimension>::M as Add<<Dr as Dimension>::M>>::Output, J = <<Dl as Dimension>::J as Add<<Dr as Dimension>::J>>::Output>, U, V>
*
operator.§impl<D, U, V> MulAssign<V> for Quantity<D, U, V>
impl<D, U, V> MulAssign<V> for Quantity<D, U, V>
§fn mul_assign(&mut self, rhs: V)
fn mul_assign(&mut self, rhs: V)
*=
operation. Read more§impl<D, U, V> Ord for Quantity<D, U, V>
impl<D, U, V> Ord for Quantity<D, U, V>
§impl<D, U, V> PartialEq for Quantity<D, U, V>
impl<D, U, V> PartialEq for Quantity<D, U, V>
§impl<D, U, V> PartialOrd for Quantity<D, U, V>
impl<D, U, V> PartialOrd for Quantity<D, U, V>
§fn partial_cmp(&self, other: &Quantity<D, U, V>) -> Option<Ordering>
fn partial_cmp(&self, other: &Quantity<D, U, V>) -> Option<Ordering>
§fn le(&self, other: &Quantity<D, U, V>) -> bool
fn le(&self, other: &Quantity<D, U, V>) -> bool
self
and other
) and is used by the <=
operator. Read more§impl<D, U, V> RemAssign for Quantity<D, U, V>
impl<D, U, V> RemAssign for Quantity<D, U, V>
§fn rem_assign(&mut self, rhs: Quantity<D, U, V>)
fn rem_assign(&mut self, rhs: Quantity<D, U, V>)
%=
operation. Read more§impl<D, U, V> Saturating for Quantity<D, U, V>
impl<D, U, V> Saturating for Quantity<D, U, V>
§fn saturating_add(self, v: Quantity<D, U, V>) -> Quantity<D, U, V>
fn saturating_add(self, v: Quantity<D, U, V>) -> Quantity<D, U, V>
§fn saturating_sub(self, v: Quantity<D, U, V>) -> Quantity<D, U, V>
fn saturating_sub(self, v: Quantity<D, U, V>) -> Quantity<D, U, V>
§impl<U, V> Sub<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> Sub<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
§type Output = Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
type Output = Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
-
operator.§fn sub(
self,
rhs: Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
) -> <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> as Sub<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>>>::Output
fn sub( self, rhs: Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> ) -> <Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V> as Sub<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>>>::Output
-
operation. Read more§impl<U, V> SubAssign<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
impl<U, V> SubAssign<Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn Kind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<Th = PInt<UInt<UTerm, B1>>, N = Z0, Kind = dyn TemperatureKind, I = Z0, T = Z0, L = Z0, M = Z0, J = Z0>, U, V>
§impl<D, U, V> SubAssign for Quantity<D, U, V>
impl<D, U, V> SubAssign for Quantity<D, U, V>
§fn sub_assign(&mut self, rhs: Quantity<D, U, V>)
fn sub_assign(&mut self, rhs: Quantity<D, U, V>)
-=
operation. Read more§impl<U, V> TryFrom<Duration> for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
V: Num + Conversion<V> + FromPrimitive,
second: Conversion<V, T = <V as Conversion<V>>::T>,
nanosecond: Conversion<V, T = <V as Conversion<V>>::T>,
U: Units<V> + ?Sized,
impl<U, V> TryFrom<Duration> for Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>where
V: Num + Conversion<V> + FromPrimitive,
second: Conversion<V, T = <V as Conversion<V>>::T>,
nanosecond: Conversion<V, T = <V as Conversion<V>>::T>,
U: Units<V> + ?Sized,
Attempt to convert the given Duration
to a Time
.
For possible failure modes, see TryFromError
.
§Notes
The Duration
to Time
conversion is tested to be accurate to within 100 nanoseconds (to
allow for floating point rounding error). If greater precision is needed, consider using a
different underlying storage type or avoiding the conversion altogether.
§type Error = TryFromError
type Error = TryFromError
§fn try_from(
duration: Duration
) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V> as TryFrom<Duration>>::Error>
fn try_from( duration: Duration ) -> Result<Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V>, <Quantity<dyn Dimension<Th = Z0, N = Z0, Kind = dyn Kind, I = Z0, T = PInt<UInt<UTerm, B1>>, L = Z0, M = Z0, J = Z0>, U, V> as TryFrom<Duration>>::Error>
impl<D, U, V> Copy for Quantity<D, U, V>
impl<D, U, V> Eq for Quantity<D, U, V>
Auto Trait Implementations§
impl<D: ?Sized, U: ?Sized, V> RefUnwindSafe for Quantity<D, U, V>where
V: RefUnwindSafe,
impl<D: ?Sized, U: ?Sized, V> Send for Quantity<D, U, V>where
V: Send,
impl<D: ?Sized, U: ?Sized, V> Sync for Quantity<D, U, V>where
V: Sync,
impl<D: ?Sized, U: ?Sized, V> Unpin for Quantity<D, U, V>where
V: Unpin,
impl<D: ?Sized, U: ?Sized, V> UnwindSafe for Quantity<D, U, V>where
V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.