Struct unitary::Qty
[−]
[src]
pub struct Qty<T: Measurement>(pub f64, pub Vec<(T, f64)>);
Methods
impl<T: Measurement> Qty<T>
[src]
pub fn powf(self, rhs: f64) -> Qty<T>
[src]
pub fn update(&mut self, aliases: &[(Vec<(T, f64)>, (T, f64))])
[src]
Trait Implementations
impl<T: Debug + Measurement> Debug for Qty<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone + Measurement> Clone for Qty<T>
[src]
fn clone(&self) -> Qty<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Measurement> Div<Qty<T>> for Qty<T>
[src]
type Output = Qty<T>
The resulting type after applying the /
operator.
fn div(self, rhs: Qty<T>) -> Qty<T>
[src]
Performs the /
operation.
impl<T: Measurement> Div<f64> for Qty<T>
[src]
type Output = Qty<T>
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Qty<T>
[src]
Performs the /
operation.
impl<T: Measurement> Mul<Qty<T>> for Qty<T>
[src]
type Output = Qty<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Qty<T>) -> Qty<T>
[src]
Performs the *
operation.
impl<T: Measurement> Mul<f64> for Qty<T>
[src]
type Output = Qty<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Qty<T>
[src]
Performs the *
operation.
impl<T: Measurement> Add<Qty<T>> for Qty<T>
[src]
type Output = Qty<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Qty<T>) -> Qty<T>
[src]
Performs the +
operation.
impl<T: Measurement> Sub<Qty<T>> for Qty<T>
[src]
type Output = Qty<T>
The resulting type after applying the -
operator.
fn sub(self, rhs: Qty<T>) -> Qty<T>
[src]
Performs the -
operation.