Struct physical_quantity::PhysicalQuantity
source · [−]pub struct PhysicalQuantity<R, D> {
pub value: R,
pub dim: D,
}Expand description
Represents physical quantity
Fields
value: Rdim: DTrait Implementations
sourceimpl<'a, R, L, M, T, θ, N, I, J> Add<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<'a, R, L, M, T, θ, N, I, J> Add<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourceimpl<'a, R, L, M, T, θ, N, I, J> Add<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<'a, R, L, M, T, θ, N, I, J> Add<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<'a, R, L, M, T, θ, N, I, J> Add<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<'a, R, L, M, T, θ, N, I, J> Add<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<'a, R> Add<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
impl<'a, R> Add<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
sourceimpl<R, L, M, T, θ, N, I, J> Add<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> Add<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourceimpl<R, L, M, T, θ, N, I, J> Add<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<R, L, M, T, θ, N, I, J> Add<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<R, L, M, T, θ, N, I, J> Add<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<R, L, M, T, θ, N, I, J> Add<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<R> Add<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
impl<R> Add<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
sourceimpl<R, D> AddAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
impl<R, D> AddAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
sourcefn add_assign(&mut self, rhs: PhysicalQuantity<R, D>)
fn add_assign(&mut self, rhs: PhysicalQuantity<R, D>)
Performs the += operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> AddAssign<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> AddAssign<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the += operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> AddAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<R, L, M, T, θ, N, I, J> AddAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourcefn add_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
fn add_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
Performs the += operation. Read more
sourceimpl<R, D> Clone for PhysicalQuantity<R, D> where
D: Dimension,
R: Clone,
impl<R, D> Clone for PhysicalQuantity<R, D> where
D: Dimension,
R: Clone,
sourceimpl<R, D> Debug for PhysicalQuantity<R, D> where
D: Dimension,
R: Real,
impl<R, D> Debug for PhysicalQuantity<R, D> where
D: Dimension,
R: Real,
sourceimpl<R, D> Display for PhysicalQuantity<R, D> where
D: Dimension,
R: Real,
impl<R, D> Display for PhysicalQuantity<R, D> where
D: Dimension,
R: Real,
sourceimpl<'a, D0, D1, R> Div<&'a PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Div<D1>,
<D0 as Div<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
impl<'a, D0, D1, R> Div<&'a PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Div<D1>,
<D0 as Div<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
type Output = PhysicalQuantity<R, <D0 as Div<D1>>::Output>
type Output = PhysicalQuantity<R, <D0 as Div<D1>>::Output>
The resulting type after applying the / operator.
sourcefn div(self, rhs: &'a PhysicalQuantity<R, D1>) -> Self::Output
fn div(self, rhs: &'a PhysicalQuantity<R, D1>) -> Self::Output
Performs the / operation. Read more
sourceimpl<D0, D1, R> Div<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Div<D1>,
<D0 as Div<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
impl<D0, D1, R> Div<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Div<D1>,
<D0 as Div<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
type Output = PhysicalQuantity<R, <D0 as Div<D1>>::Output>
type Output = PhysicalQuantity<R, <D0 as Div<D1>>::Output>
The resulting type after applying the / operator.
sourcefn div(self, rhs: PhysicalQuantity<R, D1>) -> Self::Output
fn div(self, rhs: PhysicalQuantity<R, D1>) -> Self::Output
Performs the / operation. Read more
sourceimpl<R, D> DivAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
impl<R, D> DivAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
sourcefn div_assign(&mut self, rhs: PhysicalQuantity<R, D>)
fn div_assign(&mut self, rhs: PhysicalQuantity<R, D>)
Performs the /= operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> DivAssign<PhysicalQuantity<R, Dim<Z0, Z0, Z0, Z0, Z0, Z0, Z0>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> DivAssign<PhysicalQuantity<R, Dim<Z0, Z0, Z0, Z0, Z0, Z0, Z0>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourcefn div_assign(&mut self, rhs: PhysicalQuantity<R, Dimensionless>)
fn div_assign(&mut self, rhs: PhysicalQuantity<R, Dimensionless>)
Performs the /= operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> DivAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> DivAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourcefn div_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
fn div_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
Performs the /= operation. Read more
sourceimpl<R> From<R> for PhysicalQuantity<R, Dimensionless>
impl<R> From<R> for PhysicalQuantity<R, Dimensionless>
sourceimpl<'a, D0, D1, R> Mul<&'a PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Mul<D1>,
<D0 as Mul<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
impl<'a, D0, D1, R> Mul<&'a PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Mul<D1>,
<D0 as Mul<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
type Output = PhysicalQuantity<R, <D0 as Mul<D1>>::Output>
type Output = PhysicalQuantity<R, <D0 as Mul<D1>>::Output>
The resulting type after applying the * operator.
sourcefn mul(self, rhs: &'a PhysicalQuantity<R, D1>) -> Self::Output
fn mul(self, rhs: &'a PhysicalQuantity<R, D1>) -> Self::Output
Performs the * operation. Read more
sourceimpl<D0, D1, R> Mul<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Mul<D1>,
<D0 as Mul<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
impl<D0, D1, R> Mul<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + Mul<D1>,
<D0 as Mul<D1>>::Output: Dimension,
D1: Dimension,
R: Real,
type Output = PhysicalQuantity<R, <D0 as Mul<D1>>::Output>
type Output = PhysicalQuantity<R, <D0 as Mul<D1>>::Output>
The resulting type after applying the * operator.
sourcefn mul(self, rhs: PhysicalQuantity<R, D1>) -> Self::Output
fn mul(self, rhs: PhysicalQuantity<R, D1>) -> Self::Output
Performs the * operation. Read more
sourceimpl<R, D> MulAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
impl<R, D> MulAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
sourcefn mul_assign(&mut self, rhs: PhysicalQuantity<R, D>)
fn mul_assign(&mut self, rhs: PhysicalQuantity<R, D>)
Performs the *= operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> MulAssign<PhysicalQuantity<R, Dim<Z0, Z0, Z0, Z0, Z0, Z0, Z0>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> MulAssign<PhysicalQuantity<R, Dim<Z0, Z0, Z0, Z0, Z0, Z0, Z0>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourcefn mul_assign(&mut self, rhs: PhysicalQuantity<R, Dimensionless>)
fn mul_assign(&mut self, rhs: PhysicalQuantity<R, Dimensionless>)
Performs the *= operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> MulAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> MulAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourcefn mul_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
fn mul_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
Performs the *= operation. Read more
sourceimpl<R, D> Neg for PhysicalQuantity<R, D> where
D: Dimension,
R: Real,
impl<R, D> Neg for PhysicalQuantity<R, D> where
D: Dimension,
R: Real,
sourceimpl<D0, D1, R> PartialEq<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + PartialEq<D1>,
D1: Dimension,
R: PartialEq,
impl<D0, D1, R> PartialEq<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + PartialEq<D1>,
D1: Dimension,
R: PartialEq,
sourceimpl<D0, D1, R> PartialOrd<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + PartialEq<D1>,
D1: Dimension,
R: PartialOrd,
impl<D0, D1, R> PartialOrd<PhysicalQuantity<R, D1>> for PhysicalQuantity<R, D0> where
D0: Dimension + PartialEq<D1>,
D1: Dimension,
R: PartialOrd,
sourcefn partial_cmp(&self, other: &PhysicalQuantity<R, D1>) -> Option<Ordering>
fn partial_cmp(&self, other: &PhysicalQuantity<R, D1>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl<'a, R, L, M, T, θ, N, I, J> Sub<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<'a, R, L, M, T, θ, N, I, J> Sub<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourceimpl<'a, R, L, M, T, θ, N, I, J> Sub<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<'a, R, L, M, T, θ, N, I, J> Sub<&'a PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<'a, R, L, M, T, θ, N, I, J> Sub<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<'a, R, L, M, T, θ, N, I, J> Sub<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<'a, R> Sub<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
impl<'a, R> Sub<&'a PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
sourceimpl<R, L, M, T, θ, N, I, J> Sub<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> Sub<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourceimpl<R, L, M, T, θ, N, I, J> Sub<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<R, L, M, T, θ, N, I, J> Sub<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, DynDim> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<R, L, M, T, θ, N, I, J> Sub<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<R, L, M, T, θ, N, I, J> Sub<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourceimpl<R> Sub<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
impl<R> Sub<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, DynDim> where
R: Real,
sourceimpl<R, D> SubAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
impl<R, D> SubAssign<PhysicalQuantity<R, D>> for PhysicalQuantity<R, DynDim> where
D: Dimension,
R: Real,
sourcefn sub_assign(&mut self, rhs: PhysicalQuantity<R, D>)
fn sub_assign(&mut self, rhs: PhysicalQuantity<R, D>)
Performs the -= operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> SubAssign<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
impl<R, L, M, T, θ, N, I, J> SubAssign<PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
R: Real,
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -= operation. Read more
sourceimpl<R, L, M, T, θ, N, I, J> SubAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
impl<R, L, M, T, θ, N, I, J> SubAssign<PhysicalQuantity<R, DynDim>> for PhysicalQuantity<R, Dim<L, M, T, θ, N, I, J>> where
L: Integer,
M: Integer,
T: Integer,
θ: Integer,
N: Integer,
I: Integer,
J: Integer,
R: Real,
sourcefn sub_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
fn sub_assign(&mut self, rhs: PhysicalQuantity<R, DynDim>)
Performs the -= operation. Read more
impl<R, D> Copy for PhysicalQuantity<R, D> where
D: Dimension,
R: Copy,
Auto Trait Implementations
impl<R, D> RefUnwindSafe for PhysicalQuantity<R, D> where
D: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, D> Send for PhysicalQuantity<R, D> where
D: Send,
R: Send,
impl<R, D> Sync for PhysicalQuantity<R, D> where
D: Sync,
R: Sync,
impl<R, D> Unpin for PhysicalQuantity<R, D> where
D: Unpin,
R: Unpin,
impl<R, D> UnwindSafe for PhysicalQuantity<R, D> where
D: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more