Skip to main content

Qty

Struct Qty 

Source
pub struct Qty<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8>(/* private fields */);
Expand description

A quantity, with the seven SI base dimensions in its type.

The parameters are the exponents of metre, kilogram, second, ampere, kelvin, mole and candela, in that order, so a velocity (m·s⁻¹) is Qty<1,0,-1,0,0,0,0> — which is what Velocity names.

Addition, subtraction, negation, comparison and scaling by a plain f64 work for every dimension. Multiplication and division between two quantities work for the pairs declared in this module.

Implementations§

Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Qty<L, M, T, I, K, N, J>

Source

pub const ZERO: Qty<L, M, T, I, K, N, J>

Zero, which is the one value every dimension shares.

Source

pub const fn from_si(value: f64) -> Qty<L, M, T, I, K, N, J>

Wrap a number already in SI base units. The escape hatch: use it when a dimension has no name here, and name it if you use it twice.

const, so a dimensioned constant can be written without a lazy static.

Source

pub const fn to_si(self) -> f64

The value in SI base units.

Source

pub const fn dimension() -> [i8; 7]

The seven exponents, for diagnostics and for a runtime dimension check at a boundary the type system does not cross (deserialisation, FFI).

Source

pub fn abs(self) -> Qty<L, M, T, I, K, N, J>

Magnitude without its sign, in the same dimension.

Source

pub fn min(self, other: Qty<L, M, T, I, K, N, J>) -> Qty<L, M, T, I, K, N, J>

The smaller of two quantities of the same dimension.

Source

pub fn max(self, other: Qty<L, M, T, I, K, N, J>) -> Qty<L, M, T, I, K, N, J>

The larger of two quantities of the same dimension.

Source

pub fn is_finite(self) -> bool

Whether the magnitude is neither infinite nor NaN.

Worth checking where a limit is reported rather than computed: several methods here return an infinity to mean “no limit”, which is honest but arithmetic on it is not.

Source

pub fn signum(self) -> f64

Sign of the magnitude, as a plain number — a sign has no dimension.

Source

pub fn lerp( self, other: Qty<L, M, T, I, K, N, J>, t: f64, ) -> Qty<L, M, T, I, K, N, J>

Linear interpolation, which stays within the dimension.

Source§

impl Qty<2, 0, 0, 0, 0, 0, 0>

Source

pub fn sqrt(self) -> Qty<1, 0, 0, 0, 0, 0, 0>

The side of a square of this area. The one root worth naming, because it is how a beam radius comes back out of a spot area.

Source§

impl Qty<1, 0, 0, 0, 0, 0, 0>

Source

pub fn m(v: f64) -> Qty<1, 0, 0, 0, 0, 0, 0>

Metres.

Source

pub fn mm(v: f64) -> Qty<1, 0, 0, 0, 0, 0, 0>

Millimetres.

Source

pub fn um(v: f64) -> Qty<1, 0, 0, 0, 0, 0, 0>

Micrometres.

Source

pub fn nm(v: f64) -> Qty<1, 0, 0, 0, 0, 0, 0>

Nanometres. The wavelength unit, and why every Spectrum field is named _nm.

Source

pub fn in_mm(self) -> f64

As millimetres.

Source

pub fn in_um(self) -> f64

As micrometres.

Source

pub fn in_nm(self) -> f64

As nanometres.

Source§

impl Qty<0, 0, 1, 0, 0, 0, 0>

Source

pub fn s(v: f64) -> Qty<0, 0, 1, 0, 0, 0, 0>

Seconds.

Source

pub fn ms(v: f64) -> Qty<0, 0, 1, 0, 0, 0, 0>

Milliseconds.

Source

pub fn us(v: f64) -> Qty<0, 0, 1, 0, 0, 0, 0>

Microseconds.

Source

pub fn ns(v: f64) -> Qty<0, 0, 1, 0, 0, 0, 0>

Nanoseconds.

Source

pub fn in_ms(self) -> f64

As milliseconds.

Source

pub fn in_us(self) -> f64

As microseconds.

Source§

impl Qty<0, 0, 0, 0, 1, 0, 0>

Source

pub fn kelvin(v: f64) -> Qty<0, 0, 0, 0, 1, 0, 0>

Kelvin, which is what is stored.

Source

pub fn celsius(v: f64) -> Qty<0, 0, 0, 0, 1, 0, 0>

Celsius is an offset scale, not a scaled one, which is why it gets a named constructor rather than a factor: 20 °C is 293.15 K, and a temperature difference of 20 K is a different thing entirely.

Source

pub fn in_celsius(self) -> f64

As degrees Celsius. Subtracts the offset; see Temperature::celsius.

Source§

impl Qty<0, 1, 0, 0, 0, 0, 0>

Source

pub fn kg(v: f64) -> Qty<0, 1, 0, 0, 0, 0, 0>

Kilograms.

Source

pub fn g(v: f64) -> Qty<0, 1, 0, 0, 0, 0, 0>

Grams.

Source§

impl Qty<-3, 1, 0, 0, 0, 0, 0>

Source

pub fn g_per_cm3(v: f64) -> Qty<-3, 1, 0, 0, 0, 0, 0>

The way a glass catalogue quotes it: N-BK7 is 2.51 g/cm³.

Source

pub fn kg_per_m3(v: f64) -> Qty<-3, 1, 0, 0, 0, 0, 0>

Kilograms per cubic metre, which is what is stored.

Source§

impl Qty<2, 1, -3, 0, 0, 0, 0>

Source

pub fn w(v: f64) -> Qty<2, 1, -3, 0, 0, 0, 0>

Watts.

Source

pub fn mw(v: f64) -> Qty<2, 1, -3, 0, 0, 0, 0>

Milliwatts.

Source

pub fn uw(v: f64) -> Qty<2, 1, -3, 0, 0, 0, 0>

Microwatts.

Source

pub fn in_mw(self) -> f64

As milliwatts.

Source§

impl Qty<2, 1, -2, 0, 0, 0, 0>

Source

pub fn j(v: f64) -> Qty<2, 1, -2, 0, 0, 0, 0>

Joules.

Source

pub fn mj(v: f64) -> Qty<2, 1, -2, 0, 0, 0, 0>

Millijoules.

Source§

impl Qty<0, 0, -1, 0, 0, 0, 0>

Source

pub fn hz(v: f64) -> Qty<0, 0, -1, 0, 0, 0, 0>

Hertz.

Source

pub fn khz(v: f64) -> Qty<0, 0, -1, 0, 0, 0, 0>

Kilohertz.

Source

pub fn mhz(v: f64) -> Qty<0, 0, -1, 0, 0, 0, 0>

Megahertz.

Source

pub fn period(self) -> Qty<0, 0, 1, 0, 0, 0, 0>

Period: one over the frequency. Named because 1.0 / f cannot typecheck.

Source§

impl Qty<1, 0, -1, 0, 0, 0, 0>

Source

pub fn m_per_s(v: f64) -> Qty<1, 0, -1, 0, 0, 0, 0>

Metres per second.

Source

pub fn mm_per_s(v: f64) -> Qty<1, 0, -1, 0, 0, 0, 0>

Millimetres per second.

Source§

impl Qty<0, 1, -3, 0, 0, 0, 0>

Source

pub fn w_per_m2(v: f64) -> Qty<0, 1, -3, 0, 0, 0, 0>

Watts per square metre, which is what is stored.

Source

pub fn mw_per_cm2(v: f64) -> Qty<0, 1, -3, 0, 0, 0, 0>

How an illumination spec is usually written: mW/cm².

Source§

impl Qty<1, 1, -3, 0, -1, 0, 0>

Source

pub fn w_per_m_k(v: f64) -> Qty<1, 1, -3, 0, -1, 0, 0>

W·m⁻¹·K⁻¹, the unit a materials table uses.

Source§

impl Qty<2, 0, -2, 0, -1, 0, 0>

Source

pub fn j_per_kg_k(v: f64) -> Qty<2, 0, -2, 0, -1, 0, 0>

J·kg⁻¹·K⁻¹, the unit a materials table uses.

Source§

impl Qty<2, 1, -3, 0, -1, 0, 0>

Source

pub fn w_per_k(v: f64) -> Qty<2, 1, -3, 0, -1, 0, 0>

Watts per kelvin.

Source§

impl Qty<2, 1, -2, 0, -1, 0, 0>

Source

pub fn j_per_k(v: f64) -> Qty<2, 1, -2, 0, -1, 0, 0>

Joules per kelvin. The companion to Conductance::w_per_k: their ratio is a time constant, and the type system says so.

Source§

impl Qty<0, 0, 0, 0, -1, 0, 0>

Source

pub fn ppm_per_k(v: f64) -> Qty<0, 0, 0, 0, -1, 0, 0>

Catalogues quote it in parts per million per kelvin: N-BK7 is 7.1.

Source§

impl Qty<0, 0, 0, 0, 0, 0, 0>

Source

pub fn ratio(v: f64) -> Qty<0, 0, 0, 0, 0, 0, 0>

A bare ratio, for the one case where a number genuinely has no dimension: a reflectance, a duty cycle, a refractive index.

Trait Implementations§

Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Add for Qty<L, M, T, I, K, N, J>

Source§

type Output = Qty<L, M, T, I, K, N, J>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Qty<L, M, T, I, K, N, J>) -> Qty<L, M, T, I, K, N, J>

Performs the + operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> AddAssign for Qty<L, M, T, I, K, N, J>

Source§

fn add_assign(&mut self, rhs: Qty<L, M, T, I, K, N, J>)

Performs the += operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Clone for Qty<L, M, T, I, K, N, J>

Source§

fn clone(&self) -> Qty<L, M, T, I, K, N, J>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Copy for Qty<L, M, T, I, K, N, J>

Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Debug for Qty<L, M, T, I, K, N, J>

Source§

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

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

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Default for Qty<L, M, T, I, K, N, J>

Source§

fn default() -> Qty<L, M, T, I, K, N, J>

Returns the “default value” for a type. Read more
Source§

impl<'de, const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Deserialize<'de> for Qty<L, M, T, I, K, N, J>

Source§

fn deserialize<D>( d: D, ) -> Result<Qty<L, M, T, I, K, N, J>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Display for Qty<L, M, T, I, K, N, J>

Source§

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

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

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Div for Qty<L, M, T, I, K, N, J>

Dividing two quantities of the same dimension gives a plain number — which is the one product rule that needs no exponent arithmetic, and the one every tolerance check uses.

Source§

type Output = f64

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<L, M, T, I, K, N, J>) -> f64

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 0, 0, 1, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, -1, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 0, 0, 1, 0, 0>) -> Qty<2, 1, -3, 0, -1, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 0, 0, 1, 0, 0>> for Qty<2, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, -1, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 0, 0, 1, 0, 0>) -> Qty<2, 1, -2, 0, -1, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 0, 1, 0, 0, 0>> for Qty<0, 0, 1, 1, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 0, 1, 0, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 0, 1, 0, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, -1, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 0, 1, 0, 0, 0>) -> Qty<2, 1, -3, -1, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for QVec3<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 0, 1, 0, 0, 0, 0>) -> QVec3<1, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for QVec3<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 0, 1, 0, 0, 0, 0>) -> QVec3<1, 0, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for QVec3<1, 1, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 0, 1, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<1, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<1, 0, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<1, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<2, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<0, 0, 1, 1, 0, 0, 0>

Source§

type Output = Qty<0, 0, 0, 1, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<0, 0, 0, 1, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<2, 1, -2, 0, -1, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, -1, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<2, 1, -3, 0, -1, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<0, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<0, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, -1, 0, 0, 0, 0>> for Qty<2, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, -1, 0, 0, 0, 0>) -> Qty<2, 1, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 0, -1, 0, 0, 0, 0>> for Qty<0, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 0, -1, 0, 0, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, 0, 0, 0, 0, 0>> for QVec3<1, 1, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 1, 0, 0, 0, 0, 0>) -> QVec3<1, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, 0, 0, 0, 0, 0>> for QVec3<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 1, 0, 0, 0, 0, 0>) -> QVec3<1, 0, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<1, 0, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<1, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<1, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<2, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<2, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<2, 1, -2, 0, -1, 0, 0>

Source§

type Output = Qty<2, 0, -2, 0, -1, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<2, 0, -2, 0, -1, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, -1, 0, 0, 0, 0>> for QVec3<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 1, -1, 0, 0, 0, 0>) -> QVec3<1, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, -1, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, -1, 0, 0, 0, 0>) -> Qty<1, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, -2, 0, 0, 0, 0>> for QVec3<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, k: Qty<0, 1, -2, 0, 0, 0, 0>) -> QVec3<1, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, -2, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, -2, 0, 0, 0, 0>) -> Qty<1, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<0, 1, -3, 0, 0, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<2, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<0, 1, -3, 0, 0, 0, 0>) -> Qty<2, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<2, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<1, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<3, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<2, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<2, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<0, 1, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, -1, 0, 0, 0, 0>> for Qty<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, -1, 0, 0, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, -1, 0, 0, 0, 0>> for Qty<1, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, -1, 0, 0, 0, 0>) -> Qty<0, 1, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, -1, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, -1, 0, 0, 0, 0>) -> Qty<0, 1, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, -2, 0, 0, 0, 0>> for Qty<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, -2, 0, 0, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 0, -2, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 0, -2, 0, 0, 0, 0>) -> Qty<0, 1, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 1, -2, 0, 0, 0, 0>> for Qty<2, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 1, -2, 0, 0, 0, 0>) -> Qty<1, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<1, 1, -2, 0, 0, 0, 0>> for Qty<1, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<1, 1, -2, 0, 0, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<3, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<1, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<-1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<-1, 1, -2, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, -3, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<0, 1, -3, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<2, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<0, 1, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 0, -2, 0, -1, 0, 0>> for Qty<2, 1, -2, 0, -1, 0, 0>

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 0, -2, 0, -1, 0, 0>) -> Qty<0, 1, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, 0, 0, 0, 0, 0>> for Qty<2, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, -1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 1, 0, 0, 0, 0, 0>) -> Qty<0, 0, -1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -2, 0, -1, 0, 0>> for Qty<2, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 0, 0, 1, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 1, -2, 0, -1, 0, 0>) -> Qty<0, 0, 0, 0, 1, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -3, 0, 0, 0, 0>> for Qty<2, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 1, -3, 0, 0, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -3, 0, -1, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 0, 0, 1, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 1, -3, 0, -1, 0, 0>) -> Qty<0, 0, 0, 0, 1, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -3, 0, -1, 0, 0>> for Qty<2, 1, -2, 0, -1, 0, 0>

Source§

type Output = Qty<0, 0, 1, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 1, -3, 0, -1, 0, 0>) -> Qty<0, 0, 1, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<2, 1, -3, -1, 0, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 0, 1, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<2, 1, -3, -1, 0, 0, 0>) -> Qty<0, 0, 0, 1, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<3, 0, 0, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<-3, 1, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<3, 0, 0, 0, 0, 0, 0>) -> Qty<-3, 1, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<-1, 1, -2, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<2, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<-1, 1, -2, 0, 0, 0, 0>) -> Qty<2, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl Div<Qty<-3, 1, 0, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<3, 0, 0, 0, 0, 0, 0>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Qty<-3, 1, 0, 0, 0, 0, 0>) -> Qty<3, 0, 0, 0, 0, 0, 0>

Performs the / operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Div<f64> for Qty<L, M, T, I, K, N, J>

Source§

type Output = Qty<L, M, T, I, K, N, J>

The resulting type after applying the / operator.
Source§

fn div(self, k: f64) -> Qty<L, M, T, I, K, N, J>

Performs the / operation. Read more
Source§

impl Mul for Qty<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<2, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 0, 0, 0, 0, 0, 0>> for Qty<0, 1, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 0, 0, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 0, -1, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 0, -1, 0, 0, 0, 0>) -> QVec3<1, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 0, -1, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 0, -1, 0, 0, 0, 0>) -> QVec3<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 0, -1, 0, 0, 0, 0>> for Qty<0, 1, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 0, -1, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 0, -2, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 0, -2, 0, 0, 0, 0>) -> QVec3<1, 0, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 0, -2, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 0, -2, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<QVec3<1, 1, -2, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: QVec3<1, 1, -2, 0, 0, 0, 0>) -> QVec3<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 0, 0, 1, 0, 0>> for Qty<2, 1, -3, 0, -1, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 0, 0, 1, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 0, 0, 1, 0, 0>> for Qty<2, 1, -2, 0, -1, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 0, 0, 1, 0, 0>) -> Qty<2, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 0, 1, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 1, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 0, 1, 0, 0, 0>) -> Qty<0, 0, 1, 1, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 0, 1, 0, 0, 0>> for Qty<2, 1, -3, -1, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 0, 1, 0, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for QVec3<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 0, 1, 0, 0, 0, 0>) -> QVec3<1, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for QVec3<1, 0, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 0, 1, 0, 0, 0, 0>) -> QVec3<1, 0, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for QVec3<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 0, 1, 0, 0, 0, 0>) -> QVec3<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<1, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<1, 0, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<1, 0, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<2, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<2, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<0, 0, 0, 1, 0, 0, 0>

Source§

type Output = Qty<0, 0, 1, 1, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<0, 0, 1, 1, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<2, 1, -3, 0, -1, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, -1, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<2, 1, -2, 0, -1, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, 1, 0, 0, 0, 0>> for Qty<0, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, 1, 0, 0, 0, 0>) -> Qty<0, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, -1, 0, 0, 0, 0>> for Qty<2, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, -1, 0, 0, 0, 0>) -> Qty<2, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 0, -1, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<0, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 0, -1, 0, 0, 0, 0>) -> Qty<0, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, 0, 0, 0, 0, 0>> for QVec3<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 1, 0, 0, 0, 0, 0>) -> QVec3<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, 0, 0, 0, 0, 0>> for QVec3<1, 0, -2, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 1, 0, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<1, 0, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<2, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<2, 1, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, 0, 0, 0, 0, 0>> for Qty<2, 0, -2, 0, -1, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, -1, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, 0, 0, 0, 0, 0>) -> Qty<2, 1, -2, 0, -1, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, -1, 0, 0, 0, 0>> for QVec3<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 1, -1, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, -1, 0, 0, 0, 0>> for Qty<1, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, -1, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, -2, 0, 0, 0, 0>> for QVec3<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, k: Qty<0, 1, -2, 0, 0, 0, 0>) -> QVec3<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, -2, 0, 0, 0, 0>> for Qty<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, -2, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<0, 1, -3, 0, 0, 0, 0>> for Qty<2, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<0, 1, -3, 0, 0, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<2, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<3, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<3, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<2, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, 0, 0, 0, 0, 0>> for Qty<0, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, 0, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, -1, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, -1, 0, 0, 0, 0>) -> Qty<1, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, -1, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, -1, 0, 0, 0, 0>) -> Qty<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, -1, 0, 0, 0, 0>> for Qty<0, 1, -1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, -1, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, -2, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 0, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, -2, 0, 0, 0, 0>) -> Qty<1, 0, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, -2, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 0, -2, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 1, -2, 0, 0, 0, 0>> for Qty<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 1, -2, 0, 0, 0, 0>) -> Qty<2, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 1, -2, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<1, 1, -2, 0, 0, 0, 0>) -> Qty<1, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<1, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<3, 0, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<3, 0, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<-1, 1, -2, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<0, 1, -3, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 0, 0, 0, 0, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 0, 0, 0, 0, 0, 0>) -> Qty<2, 1, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 0, -2, 0, -1, 0, 0>> for Qty<0, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, -1, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 0, -2, 0, -1, 0, 0>) -> Qty<2, 1, -2, 0, -1, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, 0, 0, 0, 0, 0>> for Qty<0, 0, -1, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -1, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 1, 0, 0, 0, 0, 0>) -> Qty<2, 1, -1, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, -2, 0, -1, 0, 0>> for Qty<0, 0, 0, 0, 1, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 1, -2, 0, -1, 0, 0>) -> Qty<2, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, -3, 0, 0, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 1, -3, 0, 0, 0, 0>) -> Qty<2, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, -3, 0, -1, 0, 0>> for Qty<0, 0, 0, 0, 1, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 1, -3, 0, -1, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, -3, 0, -1, 0, 0>> for Qty<0, 0, 1, 0, 0, 0, 0>

Source§

type Output = Qty<2, 1, -2, 0, -1, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 1, -3, 0, -1, 0, 0>) -> Qty<2, 1, -2, 0, -1, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<2, 1, -3, -1, 0, 0, 0>> for Qty<0, 0, 0, 1, 0, 0, 0>

Source§

type Output = Qty<2, 1, -3, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<2, 1, -3, -1, 0, 0, 0>) -> Qty<2, 1, -3, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<3, 0, 0, 0, 0, 0, 0>> for Qty<-3, 1, 0, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<3, 0, 0, 0, 0, 0, 0>) -> Qty<0, 1, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<-1, 1, -2, 0, 0, 0, 0>> for Qty<2, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<-1, 1, -2, 0, 0, 0, 0>) -> Qty<1, 1, -2, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl Mul<Qty<-3, 1, 0, 0, 0, 0, 0>> for Qty<3, 0, 0, 0, 0, 0, 0>

Source§

type Output = Qty<0, 1, 0, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Qty<-3, 1, 0, 0, 0, 0, 0>) -> Qty<0, 1, 0, 0, 0, 0, 0>

Performs the * operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Mul<f64> for Qty<L, M, T, I, K, N, J>

Source§

type Output = Qty<L, M, T, I, K, N, J>

The resulting type after applying the * operator.
Source§

fn mul(self, k: f64) -> Qty<L, M, T, I, K, N, J>

Performs the * operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Neg for Qty<L, M, T, I, K, N, J>

Source§

type Output = Qty<L, M, T, I, K, N, J>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Qty<L, M, T, I, K, N, J>

Performs the unary - operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> PartialEq for Qty<L, M, T, I, K, N, J>

Source§

fn eq(&self, other: &Qty<L, M, T, I, K, N, J>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> PartialOrd for Qty<L, M, T, I, K, N, J>

Source§

fn partial_cmp(&self, other: &Qty<L, M, T, I, K, N, J>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Serialize for Qty<L, M, T, I, K, N, J>

Source§

fn serialize<S>( &self, s: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> StructuralPartialEq for Qty<L, M, T, I, K, N, J>

Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Sub for Qty<L, M, T, I, K, N, J>

Source§

type Output = Qty<L, M, T, I, K, N, J>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Qty<L, M, T, I, K, N, J>) -> Qty<L, M, T, I, K, N, J>

Performs the - operation. Read more
Source§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> SubAssign for Qty<L, M, T, I, K, N, J>

Source§

fn sub_assign(&mut self, rhs: Qty<L, M, T, I, K, N, J>)

Performs the -= operation. Read more

Auto Trait Implementations§

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Freeze for Qty<L, M, T, I, K, N, J>

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> RefUnwindSafe for Qty<L, M, T, I, K, N, J>

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Send for Qty<L, M, T, I, K, N, J>

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Sync for Qty<L, M, T, I, K, N, J>

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> Unpin for Qty<L, M, T, I, K, N, J>

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> UnsafeUnpin for Qty<L, M, T, I, K, N, J>

§

impl<const L: i8, const M: i8, const T: i8, const I: i8, const K: i8, const N: i8, const J: i8> UnwindSafe for Qty<L, M, T, I, K, N, J>

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<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.