[−][src]Struct fts_units::quantity::QuantityT
Foundational struct used by all run-time quantities.
Methods
impl<T, U> QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
Trait Implementations
impl<T, U> Invert for QuantityT<T, U> where
T: Invert + Amount,
U: Invert,
InvertOutput<T>: Amount,
[src]
T: Invert + Amount,
U: Invert,
InvertOutput<T>: Amount,
type Output = QuantityT<InvertOutput<T>, InvertOutput<U>>
fn invert(self) -> Self::Output
[src]
impl<T, U> Sqrt for QuantityT<T, U> where
T: Float + Amount,
U: Sqrt,
[src]
T: Float + Amount,
U: Sqrt,
impl<T, U> Quantity for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
type AmountType = T
type UnitsType = U
fn new(amount: T) -> Self
[src]
fn amount(&self) -> Self::AmountType
[src]
impl<T, R1, R2, E> ConvertUnits<QuantityT<T, SIUnitsT<R1, E>>> for QuantityT<T, SIUnitsT<R2, E>> where
T: Amount,
AmountT<T>: Mul<SIUnitsT<R1, E>, Output = AmountT<T>> + Div<SIUnitsT<R1, E>, Output = AmountT<T>> + Mul<SIUnitsT<R2, E>, Output = AmountT<T>> + Div<SIUnitsT<R2, E>, Output = AmountT<T>>,
R1: SIRatios,
R2: SIRatios,
E: SIExponents,
[src]
T: Amount,
AmountT<T>: Mul<SIUnitsT<R1, E>, Output = AmountT<T>> + Div<SIUnitsT<R1, E>, Output = AmountT<T>> + Mul<SIUnitsT<R2, E>, Output = AmountT<T>> + Div<SIUnitsT<R2, E>, Output = AmountT<T>>,
R1: SIRatios,
R2: SIRatios,
E: SIExponents,
fn convert_from(other: QuantityT<T, SIUnitsT<R1, E>>) -> Self
[src]
fn convert_into(self) -> QuantityT<T, SIUnitsT<R1, E>>
[src]
impl<T1, T2, U> CastAmount<QuantityT<T2, U>> for QuantityT<T1, U> where
T1: Amount + NumCast,
T2: Amount + NumCast,
[src]
T1: Amount + NumCast,
T2: Amount + NumCast,
impl<T: Eq, U: Eq> Eq for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
impl<T: PartialEq, U: PartialEq> PartialEq<QuantityT<T, U>> for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
fn eq(&self, other: &QuantityT<T, U>) -> bool
[src]
fn ne(&self, other: &QuantityT<T, U>) -> bool
[src]
impl<T: Copy, U: Copy> Copy for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
impl<T: Clone, U: Clone> Clone for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
fn clone(&self) -> QuantityT<T, U>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, U> From<T> for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
impl<T: Default, U: Default> Default for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
impl<T: Debug, U: Debug> Debug for QuantityT<T, U> where
T: Amount,
[src]
T: Amount,
impl<T, U> Display for QuantityT<T, U> where
T: Display + Amount,
U: Display + Default,
[src]
T: Display + Amount,
U: Display + Default,
impl<T, Q> Sub<QuantityT<T, Q>> for QuantityT<T, Q> where
T: Amount + Sub<T>,
Q: Sub<Q>,
SubOutput<T, T>: Amount,
[src]
T: Amount + Sub<T>,
Q: Sub<Q>,
SubOutput<T, T>: Amount,
type Output = QuantityT<SubOutput<T, T>, SubOutput<Q, Q>>
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl<T, Q> Add<QuantityT<T, Q>> for QuantityT<T, Q> where
T: Amount + Add<T>,
Q: Add<Q>,
AddOutput<T, T>: Amount,
[src]
T: Amount + Add<T>,
Q: Add<Q>,
AddOutput<T, T>: Amount,
type Output = QuantityT<AddOutput<T, T>, AddOutput<Q, Q>>
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl<T, Q0, Q1> Mul<QuantityT<T, Q1>> for QuantityT<T, Q0> where
T: Amount + Mul<T>,
Q0: Mul<Q1>,
MulOutput<T, T>: Amount,
[src]
T: Amount + Mul<T>,
Q0: Mul<Q1>,
MulOutput<T, T>: Amount,
type Output = QuantityT<MulOutput<T, T>, MulOutput<Q0, Q1>>
The resulting type after applying the *
operator.
fn mul(self, other: QuantityT<T, Q1>) -> Self::Output
[src]
impl<T, Q0, Q1> Div<QuantityT<T, Q1>> for QuantityT<T, Q0> where
T: Amount + Div<T>,
Q0: Div<Q1>,
DivOutput<T, T>: Amount,
[src]
T: Amount + Div<T>,
Q0: Div<Q1>,
DivOutput<T, T>: Amount,
Auto Trait Implementations
impl<T, U> Send for QuantityT<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> Sync for QuantityT<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self