Struct Quantity

Source
pub struct Quantity<T, U>(/* private fields */);
Expand description

Physical quantity with compile-time checked unit.

Implementations§

Source§

impl<T: Copy, U> Quantity<Array1<T>, U>

Source

pub fn from_vec(v: Vec<Quantity<T, U>>) -> Self

Create a one-dimensional array from a vector of scalar quantities.

Source

pub fn linspace(start: Quantity<T, U>, end: Quantity<T, U>, n: usize) -> Self
where T: Mul<f64, Output = T> + Sub<Output = T> + Add<Output = T>,

Create a one-dimensional array with n evenly spaced elements from start to end (inclusive).

§Example
let x = Length::linspace(1.0 * METER, 3.0 * METER, 5);
assert_relative_eq!(x, &(arr1(&[1.0, 1.5, 2.0, 2.5, 3.0]) * METER));
Source§

impl<U> Quantity<Array1<f64>, U>

Source

pub fn logspace( start: Quantity<f64, U>, end: Quantity<f64, U>, n: usize, ) -> Self

Create a one-dimensional array with n logarithmically spaced elements from start to end (inclusive).

§Example
let x = Length::logspace(1.0 * METER, 16.0 * METER, 5);
assert_relative_eq!(x, &(arr1(&[1.0, 2.0, 4.0, 8.0, 16.0]) * METER));
Source§

impl<T, U, D: Dimension> Quantity<Array<T, D>, U>

Source

pub fn zeros<Sh: ShapeBuilder<Dim = D>>(shape: Sh) -> Self
where T: Clone + Zero,

Create an array with all elements set to 0.

Source

pub fn from_shape_fn<Sh, F>(shape: Sh, f: F) -> Self
where Sh: ShapeBuilder<Dim = D>, F: FnMut(D::Pattern) -> Quantity<T, U>,

Create an array with values created by the function f.

Source§

impl<T, S: Data<Elem = T>, U, D: Dimension> Quantity<ArrayBase<S, D>, U>

Source

pub fn len(&self) -> usize

Return the total number of elements in the array.

Source

pub fn is_empty(&self) -> bool

Return whether the array has any elements

Source

pub fn sum(&self) -> Quantity<T, U>
where T: Clone + Zero,

Return the sum of all elements in the array.

§Example
let x = arr1(&[1.5, 2.5]) * BAR;
assert_relative_eq!(x.sum(), &(4.0 * BAR));
Source

pub fn to_owned(&self) -> Quantity<Array<T, D>, U>
where T: Clone,

Return an uniquely owned copy of the array.

Source

pub fn shape(&self) -> &[usize]

Return the shape of the array as a slice.

Source

pub fn raw_dim(&self) -> D

Return the shape of the array as it’s stored in the array.

Source

pub fn mapv<F, T2, U2>(&self, f: F) -> Quantity<Array<T2, D>, U2>
where T: Clone, S: DataMut, F: FnMut(Quantity<T, U>) -> Quantity<T2, U2>,

Call f by value on each element and create a new array with the new values.

Source

pub fn index_axis( &self, axis: Axis, index: usize, ) -> Quantity<ArrayView<'_, T, D::Smaller>, U>
where D: RemoveAxis,

Returns a view restricted to index along the axis, with the axis removed.

Source

pub fn lanes_mut(&mut self, axis: Axis) -> LanesMut<'_, T, D::Smaller>
where S: DataMut,

Return a producer and iterable that traverses over all 1D lanes pointing in the direction of axis.

Source

pub fn sum_axis(&self, axis: Axis) -> Quantity<Array<T, D::Smaller>, U>
where T: Clone + Zero, D: RemoveAxis,

Return sum along axis.

Source

pub fn insert_axis(self, axis: Axis) -> Quantity<ArrayBase<S, D::Larger>, U>

Insert new array axis at axis and return the result.

Source

pub fn get<I: NdIndex<D>>(&self, index: I) -> Quantity<T, U>
where T: Clone,

Return the element at index.

The Index trait can not be implemented, because a new instance has to be created, when indexing a quantity array. This serves as replacement for it.

Source

pub fn set<I: NdIndex<D>>(&mut self, index: I, value: Quantity<T, U>)
where S: DataMut,

Set the element at index to scalar.

Source§

impl<U> Quantity<f64, U>

Source

pub fn powi<E: Integer>(self) -> Quantity<f64, Prod<U, E>>
where U: Mul<E>,

Calculate the integer power of self.

§Example
let x = 3.0 * METER;
assert_relative_eq!(x.powi::<P2>(), 9.0 * METER * METER);
Source

pub fn sqrt(self) -> Quantity<f64, Quot<U, P2>>
where U: Div<P2>,

Calculate the square root of self.

§Example
let x = 9.0 * METER * METER;
assert_relative_eq!(x.sqrt(), 3.0 * METER);
Source

pub fn cbrt(self) -> Quantity<f64, Quot<U, P3>>
where U: Div<P3>,

Calculate the cubic root of self.

§Example
let x = 27.0 * METER * METER * METER;
assert_relative_eq!(x.cbrt(), 3.0 * METER);
Source

pub fn root<R: Integer>(self) -> Quantity<f64, Quot<U, R>>
where U: Div<R>,

Calculate the integer root of self.

§Example
let x = 81.0 * METER * METER * METER * METER;
assert_relative_eq!(x.root::<P4>(), 3.0 * METER);
Source§

impl<T, U> Quantity<T, U>

Source

pub fn abs(self) -> Self
where T: Signed,

Return the absolute value of self.

§Example
let t = -50.0 * KELVIN;
assert_relative_eq!(t.abs(), &(50.0 * KELVIN));
Source

pub fn inv(self) -> Quantity<T, Negate<U>>
where T: Inv<Output = T>, U: Neg,

Return the multiplicative inverse of self.

§Example
let t = 5.0 * PASCAL;
assert_relative_eq!(t.inv(), &(0.2/PASCAL));
Source§

impl<U> Quantity<f64, U>

Source

pub fn signum(self) -> f64

Returns a number that represents the sign of self.

  • 1.0 if the number is positive, +0.0 or INFINITY
  • -1.0 if the number is negative, -0.0 or NEG_INFINITY
  • NAN if the number is NAN
Source

pub fn is_sign_negative(&self) -> bool

Returns true if self has a negative sign, including -0.0, NaNs with negative sign bit and negative infinity.

Source

pub fn is_sign_positive(&self) -> bool

Returns true if self has a positive sign, including +0.0, NaNs with positive sign bit and positive infinity.

Source

pub fn is_nan(&self) -> bool

Returns true if this value is NaN.

Source

pub fn min(self, other: Self) -> Self

Return the minimum of self and other.

§Example
let p1 = 110.0 * KILO * PASCAL;
let p2 = BAR;
assert_relative_eq!(p1.min(p2), &p2);
Source

pub fn max(self, other: Self) -> Self

Return the maximum of self and other.

§Example
let p1 = 110.0 * KILO * PASCAL;
let p2 = BAR;
assert_relative_eq!(p1.max(p2), &p1);
Source§

impl<D: DualNum<f64>, U> Quantity<D, U>

Source

pub fn re(&self) -> Quantity<f64, U>

Source§

impl Quantity<f64, Radians>

Source

pub fn sin(self) -> f64

Source

pub fn cos(self) -> f64

Source

pub fn tan(self) -> f64

Source

pub fn asin(x: f64) -> Self

Source

pub fn acos(x: f64) -> Self

Source

pub fn atan(x: f64) -> Self

Source

pub fn atan2(y: f64, x: f64) -> Self

Source§

impl<T> Quantity<T, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, TArr<Z0, ATerm>>>>>>>>

Source

pub fn into_value(self) -> T

Return the value of a dimensionless quantity.

Source§

impl<T, U> Quantity<T, U>

Source

pub fn new(value: T) -> Self

Source

pub fn convert_to<T2>(&self, unit: Quantity<T2, U>) -> Quot<&T, T2>
where for<'a> &'a T: Div<T2>,

Convert a quantity into the given unit and return it as a float or array.

Source

pub fn convert_into<T2>(self, unit: Quantity<T2, U>) -> Quot<T, T2>
where T: Div<T2>,

Convert a quantity into the given unit and return it as a float or array.

Trait Implementations§

Source§

impl<T: AbsDiffEq, U> AbsDiffEq for Quantity<T, U>

Source§

type Epsilon = <T as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
Source§

fn default_epsilon() -> Self::Epsilon

The default tolerance to use when testing values that are close together. Read more
Source§

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
Source§

fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
Source§

impl<'a, 'b, T1, T2, U> Add<&'b Quantity<T2, U>> for &'a Quantity<T1, U>
where &'a T1: Add<&'b T2>,

Source§

type Output = Quantity<<&'a T1 as Add<&'b T2>>::Output, U>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'b Quantity<T2, U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'b, T1, T2, U> Add<&'b Quantity<T2, U>> for Quantity<T1, U>
where T1: Add<&'b T2>,

Source§

type Output = Quantity<<T1 as Add<&'b T2>>::Output, U>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'b Quantity<T2, U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, T1, T2, U> Add<Quantity<T2, U>> for &'a Quantity<T1, U>
where &'a T1: Add<T2>,

Source§

type Output = Quantity<<&'a T1 as Add<T2>>::Output, U>

The resulting type after applying the + operator.
Source§

fn add(self, other: Quantity<T2, U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<T1, T2, U> Add<Quantity<T2, U>> for Quantity<T1, U>
where T1: Add<T2>,

Source§

type Output = Quantity<<T1 as Add<T2>>::Output, U>

The resulting type after applying the + operator.
Source§

fn add(self, other: Quantity<T2, U>) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, T1, T2, U> AddAssign<&'a Quantity<T2, U>> for Quantity<T1, U>
where T1: AddAssign<&'a T2>,

Source§

fn add_assign(&mut self, rhs: &'a Quantity<T2, U>)

Performs the += operation. Read more
Source§

impl<T1, T2, U> AddAssign<Quantity<T2, U>> for Quantity<T1, U>
where T1: AddAssign<T2>,

Source§

fn add_assign(&mut self, rhs: Quantity<T2, U>)

Performs the += operation. Read more
Source§

impl<T: Clone, U: Clone> Clone for Quantity<T, U>

Source§

fn clone(&self) -> Quantity<T, U>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Inner: Debug, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer> Debug for Quantity<Inner, SIUnit<T, L, M, I, THETA, N, J>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, N1, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, P1, N2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, P1, N1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, P1, Z0, N1, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, P1, Z0, Z0, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, Z0, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P2, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, P1, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, Z0, P1, N1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N2, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, P2, P1, N2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, P2, P1, N1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, P2, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, P2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, P1, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, Z0, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N3, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, N2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, N1, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, P2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, P2, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, P3, N1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, P1, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<N1, Z0, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<P4, N2, N1, P2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<P3, N2, N1, P2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<P1, Z0, Z0, P1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<P1, Z0, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, N2, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, N3, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, N3, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, N1, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, P2, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, P3, Z0, Z0, N1, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, P3, Z0, Z0, Z0, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, P3, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, P1, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, Z0, P1, Z0, Z0, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, Z0, Z0, Z0, P1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Dimension> Display for Quantity<Array<f64, D>, SIUnit<Z0, Z0, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Inner: Display> Display for Quantity<Inner, _Dimensionless>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, N1, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, P1, N2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, P1, N1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, P1, Z0, N1, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, P1, Z0, Z0, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, Z0, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P2, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, P1, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, Z0, P1, N1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N2, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, P2, P1, N2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, P2, P1, N1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, P2, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, P2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, P1, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, Z0, P1, Z0, N1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N3, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, N2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, N1, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, P2, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, P2, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, P3, N1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, P1, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<N1, Z0, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<P4, N2, N1, P2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<P3, N2, N1, P2, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<P1, Z0, Z0, P1, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<P1, Z0, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, N2, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, N3, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, N3, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, N1, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, P2, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, P3, Z0, Z0, N1, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, P3, Z0, Z0, Z0, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, P3, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, P1, Z0, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, Z0, P1, Z0, Z0, N1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, Z0, P1, Z0, Z0, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, Z0, Z0, Z0, P1, Z0, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Quantity<f64, SIUnit<Z0, Z0, Z0, Z0, Z0, P1, Z0>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b, T1, T2, U1, U2> Div<&'b Quantity<T2, U2>> for &'a Quantity<T1, U1>
where &'a T1: Div<&'b T2>, U1: Sub<U2>,

Source§

type Output = Quantity<<&'a T1 as Div<&'b T2>>::Output, <U1 as Sub<U2>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: &'b Quantity<T2, U2>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'b, T1, T2, U1, U2> Div<&'b Quantity<T2, U2>> for Quantity<T1, U1>
where T1: Div<&'b T2>, U1: Sub<U2>,

Source§

type Output = Quantity<<T1 as Div<&'b T2>>::Output, <U1 as Sub<U2>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: &'b Quantity<T2, U2>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T, U> Div<Quantity<T, U>> for f64
where U: Neg, f64: Div<T>,

Source§

type Output = Quantity<<f64 as Div<T>>::Output, <U as Neg>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Quantity<T, U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, T1, T2, U1, U2> Div<Quantity<T2, U2>> for &'a Quantity<T1, U1>
where &'a T1: Div<T2>, U1: Sub<U2>,

Source§

type Output = Quantity<<&'a T1 as Div<T2>>::Output, <U1 as Sub<U2>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Quantity<T2, U2>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T1, T2, U1, U2> Div<Quantity<T2, U2>> for Quantity<T1, U1>
where T1: Div<T2>, U1: Sub<U2>,

Source§

type Output = Quantity<<T1 as Div<T2>>::Output, <U1 as Sub<U2>>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Quantity<T2, U2>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U: Neg, S: Data<Elem = f64>, D: Dimension> Div<Quantity<f64, U>> for &ArrayBase<S, D>

Source§

type Output = Quantity<ArrayBase<OwnedRepr<f64>, D>, <U as Neg>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Quantity<f64, U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<U: Neg, S: DataOwned<Elem = f64> + DataMut, D: Dimension> Div<Quantity<f64, U>> for ArrayBase<S, D>

Source§

type Output = Quantity<ArrayBase<S, D>, <U as Neg>::Output>

The resulting type after applying the / operator.
Source§

fn div(self, other: Quantity<f64, U>) -> Self::Output

Performs the / operation. Read more
Source§

impl<'a, T, U> Div<f64> for &'a Quantity<T, U>
where &'a T: Div<f64>,

Source§

type Output = Quantity<<&'a T as Div<f64>>::Output, U>

The resulting type after applying the / operator.
Source§

fn div(self, other: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: Div<f64>, U> Div<f64> for Quantity<T, U>

Source§

type Output = Quantity<<T as Div<f64>>::Output, U>

The resulting type after applying the / operator.
Source§

fn div(self, other: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl<U, T1, T2> DivAssign<T2> for Quantity<T1, U>
where T1: DivAssign<T2>,

Source§

fn div_assign(&mut self, other: T2)

Performs the /= operation. Read more
Source§

impl<D, F, T: DualStruct<D, F>, U> DualStruct<D, F> for Quantity<T, U>

Source§

type Real = Quantity<<T as DualStruct<D, F>>::Real, U>

Source§

type Lifted<D2: DualNum<F, Inner = D>> = Quantity<<T as DualStruct<D, F>>::Lifted<D2>, U>

Source§

fn real(&self) -> Self::Real

Source§

fn lift<D2: DualNum<F, Inner = D>>(&self) -> Self::Lifted<D2>

Source§

impl<T, U> FromIterator<Quantity<T, U>> for Quantity<Array1<T>, U>

Source§

fn from_iter<I>(iter: I) -> Self
where I: IntoIterator<Item = Quantity<T, U>>,

Creates a value from an iterator. Read more
Source§

impl<'py, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer, D: Dimension> FromPyObject<'py> for Quantity<Array<f64, D>, SIUnit<T, L, M, I, THETA, N, J>>
where Self: PrintUnit,

Source§

fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
Source§

impl<'py, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer> FromPyObject<'py> for Quantity<f64, SIUnit<T, L, M, I, THETA, N, J>>
where Self: PrintUnit,

Source§

fn extract_bound(ob: &Bound<'py, PyAny>) -> PyResult<Self>

Extracts Self from the bound smart pointer obj. Read more
Source§

impl<'a, F, T: Copy + 'static, U: Copy> IntoIterator for &'a Quantity<F, U>
where &'a F: IntoIterator<Item = &'a T>,

Source§

type Item = Quantity<T, U>

The type of the elements being iterated over.
Source§

type IntoIter = QuantityIter<<&'a F as IntoIterator>::IntoIter, U>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'py, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer, D: Dimension> IntoPyObject<'py> for Quantity<Array<f64, D>, SIUnit<T, L, M, I, THETA, N, J>>

Source§

type Target = PyAny

The Python output type
Source§

type Output = Bound<'py, PyAny>

The smart pointer type to use. Read more
Source§

type Error = PyErr

The type returned in the event of a conversion error.
Source§

fn into_pyobject(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>

Performs the conversion.
Source§

impl<'py, T: Integer, L: Integer, M: Integer, I: Integer, THETA: Integer, N: Integer, J: Integer> IntoPyObject<'py> for Quantity<f64, SIUnit<T, L, M, I, THETA, N, J>>

Source§

type Target = PyAny

The Python output type
Source§

type Output = Bound<'py, PyAny>

The smart pointer type to use. Read more
Source§

type Error = PyErr

The type returned in the event of a conversion error.
Source§

fn into_pyobject(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>>

Performs the conversion.
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, N1, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, P1, N2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, P1, N1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, P1, Z0, N1, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, P1, Z0, Z0, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, Z0, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P2, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, P1, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, Z0, P1, N1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N2, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, P2, P1, N2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, P2, P1, N1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, P2, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, P2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, P1, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, Z0, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N3, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, N2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, N1, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, P2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, P2, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, P3, N1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, P1, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<N1, Z0, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<P4, N2, N1, P2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<P3, N2, N1, P2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<P1, Z0, Z0, P1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<P1, Z0, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, N2, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, N3, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, N3, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, N1, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, P2, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, P3, Z0, Z0, N1, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, P3, Z0, Z0, Z0, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, P3, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, P1, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, Z0, P1, Z0, Z0, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, Z0, Z0, Z0, P1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> LowerExp for Quantity<T, SIUnit<Z0, Z0, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: LowerExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b, T1, T2, U1, U2> Mul<&'b Quantity<T2, U2>> for &'a Quantity<T1, U1>
where &'a T1: Mul<&'b T2>, U1: Add<U2>,

Source§

type Output = Quantity<<&'a T1 as Mul<&'b T2>>::Output, <U1 as Add<U2>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'b Quantity<T2, U2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'b, T1, T2, U1, U2> Mul<&'b Quantity<T2, U2>> for Quantity<T1, U1>
where T1: Mul<&'b T2>, U1: Add<U2>,

Source§

type Output = Quantity<<T1 as Mul<&'b T2>>::Output, <U1 as Add<U2>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'b Quantity<T2, U2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T, U> Mul<Quantity<T, U>> for f64
where f64: Mul<T>,

Source§

type Output = Quantity<<f64 as Mul<T>>::Output, U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Quantity<T, U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, T1, T2, U1, U2> Mul<Quantity<T2, U2>> for &'a Quantity<T1, U1>
where &'a T1: Mul<T2>, U1: Add<U2>,

Source§

type Output = Quantity<<&'a T1 as Mul<T2>>::Output, <U1 as Add<U2>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Quantity<T2, U2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T1, T2, U1, U2> Mul<Quantity<T2, U2>> for Quantity<T1, U1>
where T1: Mul<T2>, U1: Add<U2>,

Source§

type Output = Quantity<<T1 as Mul<T2>>::Output, <U1 as Add<U2>>::Output>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Quantity<T2, U2>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, S: Data<Elem = f64>, D: Dimension> Mul<Quantity<f64, U>> for &ArrayBase<S, D>

Source§

type Output = Quantity<ArrayBase<OwnedRepr<f64>, D>, U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Quantity<f64, U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, S: DataOwned<Elem = f64> + DataMut, D: Dimension> Mul<Quantity<f64, U>> for ArrayBase<S, D>

Source§

type Output = Quantity<ArrayBase<S, D>, U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Quantity<f64, U>) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a, T, U> Mul<f64> for &'a Quantity<T, U>
where &'a T: Mul<f64>,

Source§

type Output = Quantity<<&'a T as Mul<f64>>::Output, U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Mul<f64>, U> Mul<f64> for Quantity<T, U>

Source§

type Output = Quantity<<T as Mul<f64>>::Output, U>

The resulting type after applying the * operator.
Source§

fn mul(self, other: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl<U, T1, T2> MulAssign<T2> for Quantity<T1, U>
where T1: MulAssign<T2>,

Source§

fn mul_assign(&mut self, other: T2)

Performs the *= operation. Read more
Source§

impl<T, U> Neg for Quantity<T, U>
where T: Neg,

Source§

type Output = Quantity<<T as Neg>::Output, U>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: PartialEq, U> PartialEq for Quantity<T, U>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: PartialOrd, U> PartialOrd for Quantity<T, U>

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T: RelativeEq, U> RelativeEq for Quantity<T, U>

Source§

fn default_max_relative() -> Self::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
Source§

fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
Source§

fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of RelativeEq::relative_eq.
Source§

impl<'a, 'b, T1, T2, U> Sub<&'b Quantity<T2, U>> for &'a Quantity<T1, U>
where &'a T1: Sub<&'b T2>,

Source§

type Output = Quantity<<&'a T1 as Sub<&'b T2>>::Output, U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'b Quantity<T2, U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'b, T1, T2, U> Sub<&'b Quantity<T2, U>> for Quantity<T1, U>
where T1: Sub<&'b T2>,

Source§

type Output = Quantity<<T1 as Sub<&'b T2>>::Output, U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'b Quantity<T2, U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, T1, T2, U> Sub<Quantity<T2, U>> for &'a Quantity<T1, U>
where &'a T1: Sub<T2>,

Source§

type Output = Quantity<<&'a T1 as Sub<T2>>::Output, U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Quantity<T2, U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<T1, T2, U> Sub<Quantity<T2, U>> for Quantity<T1, U>
where T1: Sub<T2>,

Source§

type Output = Quantity<<T1 as Sub<T2>>::Output, U>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Quantity<T2, U>) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, T1, T2, U> SubAssign<&'a Quantity<T2, U>> for Quantity<T1, U>
where T1: SubAssign<&'a T2>,

Source§

fn sub_assign(&mut self, rhs: &'a Quantity<T2, U>)

Performs the -= operation. Read more
Source§

impl<T1, T2, U> SubAssign<Quantity<T2, U>> for Quantity<T1, U>
where T1: SubAssign<T2>,

Source§

fn sub_assign(&mut self, rhs: Quantity<T2, U>)

Performs the -= operation. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, N1, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, P1, N2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, P1, N1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, P1, Z0, N1, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, P1, Z0, Z0, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, Z0, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P2, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, P1, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, Z0, P1, N1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N2, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, P2, P1, N2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, P2, P1, N1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, P2, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, P2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, P1, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, Z0, P1, Z0, N1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N3, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, N2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, N1, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, P2, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, P2, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, P3, N1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, P1, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<N1, Z0, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<P4, N2, N1, P2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<P3, N2, N1, P2, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<P1, Z0, Z0, P1, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<P1, Z0, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, N2, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, N3, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, N3, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, N1, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, P2, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, P3, Z0, Z0, N1, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, P3, Z0, Z0, Z0, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, P3, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, P1, Z0, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, Z0, P1, Z0, Z0, N1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, Z0, P1, Z0, Z0, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, Z0, Z0, Z0, P1, Z0, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> UpperExp for Quantity<T, SIUnit<Z0, Z0, Z0, Z0, Z0, P1, Z0>>
where for<'a> &'a T: Div<f64>, for<'a> Quot<&'a T, f64>: UpperExp,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Copy, U: Copy> Copy for Quantity<T, U>

Auto Trait Implementations§

§

impl<T, U> Freeze for Quantity<T, U>
where T: Freeze,

§

impl<T, U> RefUnwindSafe for Quantity<T, U>

§

impl<T, U> Send for Quantity<T, U>
where T: Send, U: Send,

§

impl<T, U> Sync for Quantity<T, U>
where T: Sync, U: Sync,

§

impl<T, U> Unpin for Quantity<T, U>
where T: Unpin, U: Unpin,

§

impl<T, U> UnwindSafe for Quantity<T, U>
where T: UnwindSafe, U: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'py, T> FromPyObjectBound<'_, 'py> for T
where T: FromPyObject<'py>,

Source§

fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'py, T> IntoPyObjectExt<'py> for T
where T: IntoPyObject<'py>,

Source§

fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>

Converts self into an owned Python object, dropping type information.
Source§

fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>

Converts self into an owned Python object, dropping type information and unbinding it from the 'py lifetime.
Source§

fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>

Converts self into a Python object. Read more
Source§

impl<T> PyErrArguments for T
where T: for<'py> IntoPyObject<'py> + Send + Sync,

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Arguments for exception
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, Right> ClosedAdd<Right> for T
where T: Add<Right, Output = T> + AddAssign<Right>,

Source§

impl<T, Right> ClosedAddAssign<Right> for T
where T: ClosedAdd<Right> + AddAssign<Right>,

Source§

impl<T, Right> ClosedDiv<Right> for T
where T: Div<Right, Output = T> + DivAssign<Right>,

Source§

impl<T, Right> ClosedDivAssign<Right> for T
where T: ClosedDiv<Right> + DivAssign<Right>,

Source§

impl<T, Right> ClosedMul<Right> for T
where T: Mul<Right, Output = T> + MulAssign<Right>,

Source§

impl<T, Right> ClosedMulAssign<Right> for T
where T: ClosedMul<Right> + MulAssign<Right>,

Source§

impl<T> ClosedNeg for T
where T: Neg<Output = T>,

Source§

impl<T, Right> ClosedSub<Right> for T
where T: Sub<Right, Output = T> + SubAssign<Right>,

Source§

impl<T, Right> ClosedSubAssign<Right> for T
where T: ClosedSub<Right> + SubAssign<Right>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<T> Ungil for T
where T: Send,