Type Alias blackbox_log::units::si::f64::HeatTransfer
pub type HeatTransfer = Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64>;
Expand description
Quantity
type alias using the default base units.
Aliased Type§
struct HeatTransfer {
pub dimension: PhantomData<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>>,
pub units: PhantomData<dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>>,
pub value: f64,
}
Fields§
§dimension: PhantomData<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>>
Quantity dimension. See Dimension
.
units: PhantomData<dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>>
Quantity base units. See Units
.
value: f64
Quantity value stored in the base units for the quantity.
Implementations
§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<T = <<D as Dimension>::T as Neg>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Neg>::Output, N = <<D as Dimension>::N as Neg>::Output, I = <<D as Dimension>::I as Neg>::Output, Th = <<D as Dimension>::Th as Neg>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as Neg>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Neg>::Output, N = <<D as Dimension>::N as Neg>::Output, I = <<D as Dimension>::I as Neg>::Output, Th = <<D as Dimension>::Th as Neg>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B1>>>>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output, J = <<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output>, Ub, f64>,
) -> Quantity<dyn Dimension<T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::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<T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::Output, J = <<D as Dimension>::J as Add<<Da as Dimension>::J>>::Output>, Ub, f64>,
) -> Quantity<dyn Dimension<T = <<D as Dimension>::T as Add<<Da as Dimension>::T>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Add<<Da as Dimension>::M>>::Output, N = <<D as Dimension>::N as Add<<Da as Dimension>::N>>::Output, I = <<D as Dimension>::I as Add<<Da as Dimension>::I>>::Output, Th = <<D as Dimension>::Th as Add<<Da as Dimension>::Th>>::Output, L = <<D as Dimension>::L as Add<<Da as Dimension>::L>>::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<T = <<D as Dimension>::T as Mul<E>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Mul<E>>::Output, N = <<D as Dimension>::N as Mul<E>>::Output, I = <<D as Dimension>::I as Mul<E>>::Output, Th = <<D as Dimension>::Th as Mul<E>>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as Mul<E>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as Mul<E>>::Output, N = <<D as Dimension>::N as Mul<E>>::Output, I = <<D as Dimension>::I as Mul<E>>::Output, Th = <<D as Dimension>::Th as Mul<E>>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, L = <<D as Dimension>::L 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<T = <<D as Dimension>::T as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, Kind = dyn Kind, M = <<D as Dimension>::M as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, N = <<D as Dimension>::N as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, I = <<D as Dimension>::I as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, Th = <<D as Dimension>::Th as PartialDiv<PInt<UInt<UInt<UTerm, B1>, B0>>>>::Output, L = <<D as Dimension>::L 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,
§impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Implementation of various stdlib trigonometric functions
pub fn cos(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn cos( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the cosine of the angle.
pub fn cosh(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn cosh( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the hyperbolic cosine of the angle.
pub fn sin(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn sin( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the sine of the angle.
pub fn sinh(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn sinh( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the hyperbolic sine of the angle.
pub fn sin_cos(
self,
) -> (Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>, Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>)
pub fn sin_cos( self, ) -> (Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>, Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>)
Computes the value of both the sine and cosine of the angle.
§impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64>
impl Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64>
pub const HALF_TURN: Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64> = _
pub const HALF_TURN: Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64> = _
A half turn, i.e. an angle with a value of π as measured in radians
pub const FULL_TURN: Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64> = _
pub const FULL_TURN: Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64> = _
A full turn, i.e. an angle with a value of 2π as measured in radians
§impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Implementation of various stdlib functions.
pub fn acos(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn acos( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the inverse cosine of the ratio.
pub fn acosh(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn acosh( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the inverse hyperbolic cosine of the ratio.
pub fn asin(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn asin( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the inverse sine of the ratio.
pub fn asinh(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn asinh( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the inverse hyperbolic sine of the ratio.
pub fn atan(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn atan( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the inverse tangent of the ratio.
pub fn atanh(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn atanh( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Computes the value of the inverse hyperbolic tangent of the ratio.
pub fn exp(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn exp( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Returns e^(self)
, (the exponential function).
pub fn exp2(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn exp2( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Returns 2^(self).
pub fn ln(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ln( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Returns the natural logarithm of the number.
pub fn log(
self,
base: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn log( self, base: V, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn log2( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Returns the base 2 logarithm of the number.
pub fn log10(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn log10( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
Returns the base 10 logarithm of the number.
§impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64>
impl Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64>
pub const SPHERE: Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, f64> = _
pub const SPHERE: Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, dyn Units<f64, luminous_intensity = candela, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, thermodynamic_temperature = kelvin>, 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn new<N>(
v: V,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>where
N: Unit + Conversion<V, T = <V as Conversion<V>>::T>,
pub fn floor<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn floor<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn ceil<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn round<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn trunc<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>(
self,
) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn fract<N>( self, ) -> Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, N>where
N: Unit,
pub fn format_args<N>(
_unit: N,
style: DisplayStyle,
) -> Arguments<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V, N>where
N: Unit,
pub fn into_format_args<N>(
self,
_unit: N,
style: DisplayStyle,
) -> QuantityArguments<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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.
Trait Implementations
§impl<U, V> Add<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Add<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
§type Output = Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
type Output = Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
+
operator.§fn add(
self,
rhs: Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>,
) -> <Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>>>::Output
fn add( self, rhs: Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>, ) -> <Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>>>::Output
+
operation. Read more§impl<U, V> Add<Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Add<Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
§type Output = Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
type Output = Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
+
operator.§fn add(
self,
rhs: Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>,
) -> <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>>>::Output
fn add( self, rhs: Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>, ) -> <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V> as Add<Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>>>::Output
+
operation. Read more§impl<U, V> AddAssign<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> AddAssign<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = <<Dl as Dimension>::T as Sub<<Dr as Dimension>::T>>::Output, Kind = dyn Kind, M = <<Dl as Dimension>::M as Sub<<Dr as Dimension>::M>>::Output, N = <<Dl as Dimension>::N as Sub<<Dr as Dimension>::N>>::Output, I = <<Dl as Dimension>::I as Sub<<Dr as Dimension>::I>>::Output, Th = <<Dl as Dimension>::Th as Sub<<Dr as Dimension>::Th>>::Output, L = <<Dl as Dimension>::L as Sub<<Dr as Dimension>::L>>::Output, J = <<Dl as Dimension>::J as Sub<<Dr as Dimension>::J>>::Output>, U, V>
type Output = Quantity<dyn Dimension<T = <<Dl as Dimension>::T as Sub<<Dr as Dimension>::T>>::Output, Kind = dyn Kind, M = <<Dl as Dimension>::M as Sub<<Dr as Dimension>::M>>::Output, N = <<Dl as Dimension>::N as Sub<<Dr as Dimension>::N>>::Output, I = <<Dl as Dimension>::I as Sub<<Dr as Dimension>::I>>::Output, Th = <<Dl as Dimension>::Th as Sub<<Dr as Dimension>::Th>>::Output, L = <<Dl as Dimension>::L as Sub<<Dr as Dimension>::L>>::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<T = T, Kind = dyn AngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn AngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn ConstituentConcentrationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn ConstituentConcentrationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn InformationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn InformationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn AngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn AngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn ConstituentConcentrationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn ConstituentConcentrationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn InformationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn InformationKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn SolidAngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn SolidAngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn SolidAngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
impl<L, M, T, I, Th, N, J, U, V> From<Quantity<dyn Dimension<T = T, Kind = dyn SolidAngleKind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>> for Quantity<dyn Dimension<T = T, Kind = dyn Kind, M = M, N = N, I = I, Th = Th, L = L, J = J>, U, V>
§impl<U, V> From<V> for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
impl<U, V> From<V> for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, V>
§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = NInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UInt<UTerm, B1>, B0>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = PInt<UInt<UTerm, B1>>, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = PInt<UInt<UTerm, B1>>>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn AngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn ConstituentConcentrationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn InformationKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = NInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B0>>, J = Z0>, U, f64> as FromStr>::Err>
s
to return a value of this type. Read more§impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = NInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UInt<UTerm, B1>, 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = PInt<UInt<UTerm, B1>>, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = PInt<UInt<UTerm, B1>>, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = PInt<UInt<UTerm, B1>>, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UInt<UTerm, B1>, B0>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = NInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = NInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn SolidAngleKind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
impl<U> FromStr for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>
§fn from_str(
s: &str,
) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, f64>, <Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = <<Dl as Dimension>::T as Add<<Dr as Dimension>::T>>::Output, Kind = dyn Kind, M = <<Dl as Dimension>::M as Add<<Dr as Dimension>::M>>::Output, N = <<Dl as Dimension>::N as Add<<Dr as Dimension>::N>>::Output, I = <<Dl as Dimension>::I as Add<<Dr as Dimension>::I>>::Output, Th = <<Dl as Dimension>::Th as Add<<Dr as Dimension>::Th>>::Output, L = <<Dl as Dimension>::L as Add<<Dr as Dimension>::L>>::Output, J = <<Dl as Dimension>::J as Add<<Dr as Dimension>::J>>::Output>, U, V>
type Output = Quantity<dyn Dimension<T = <<Dl as Dimension>::T as Add<<Dr as Dimension>::T>>::Output, Kind = dyn Kind, M = <<Dl as Dimension>::M as Add<<Dr as Dimension>::M>>::Output, N = <<Dl as Dimension>::N as Add<<Dr as Dimension>::N>>::Output, I = <<Dl as Dimension>::I as Add<<Dr as Dimension>::I>>::Output, Th = <<Dl as Dimension>::Th as Add<<Dr as Dimension>::Th>>::Output, L = <<Dl as Dimension>::L as Add<<Dr as Dimension>::L>>::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<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> Sub<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
§type Output = Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
type Output = Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
-
operator.§fn sub(
self,
rhs: Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>,
) -> <Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V> as Sub<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>>>::Output
fn sub( self, rhs: Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>, ) -> <Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V> as Sub<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>>>::Output
-
operation. Read more§impl<U, V> SubAssign<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>
impl<U, V> SubAssign<Quantity<dyn Dimension<T = Z0, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = Z0, J = Z0>, U, V>> for Quantity<dyn Dimension<T = Z0, Kind = dyn TemperatureKind, M = Z0, N = Z0, I = Z0, Th = PInt<UInt<UTerm, B1>>, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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<T = PInt<UInt<UTerm, B1>>, Kind = dyn Kind, M = Z0, N = Z0, I = Z0, Th = Z0, L = 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.