[−][src]Struct const_unit_poc::Quantity
Fields
raw_value: f64
Trait Implementations
impl<const U: SiUnit> Add<Quantity<U>> for Quantity<U>
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, rhs: Self) -> Self
[src]
impl<const U: SiUnit> AddAssign<Quantity<U>> for Quantity<U>
[src]
pub fn add_assign(&mut self, rhs: Self)
[src]
impl<const U: SiUnit> Clone for Quantity<U>
[src]
impl<const U: SiUnit> Copy for Quantity<U>
[src]
impl<const U: SiUnit> Debug for Quantity<U>
[src]
impl<const U: SiUnit> Div<Quantity<U>> for f64 where
Quantity<{ U.neg() }>: ,
[src]
Quantity<{ U.neg() }>: ,
type Output = Quantity<{ U.neg() }>
The resulting type after applying the /
operator.
pub fn div(self, rhs: Quantity<U>) -> Self::Output
[src]
impl<const UL: SiUnit, const UR: SiUnit> Div<Quantity<UR>> for Quantity<UL> where
Quantity<{ UL.unit_div(UR) }>: ,
[src]
Quantity<{ UL.unit_div(UR) }>: ,
type Output = Quantity<{ UL.unit_div(UR) }>
The resulting type after applying the /
operator.
pub fn div(self, rhs: Quantity<UR>) -> Self::Output
[src]
impl<const U: SiUnit> Div<f64> for Quantity<U>
[src]
type Output = Quantity<U>
The resulting type after applying the /
operator.
pub fn div(self, rhs: f64) -> Self::Output
[src]
impl<const U: SiUnit> DivAssign<f64> for Quantity<U>
[src]
pub fn div_assign(&mut self, rhs: f64)
[src]
impl<const U: SiUnit> Mul<Quantity<U>> for f64
[src]
type Output = Quantity<U>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Quantity<U>) -> Self::Output
[src]
impl<const UL: SiUnit, const UR: SiUnit> Mul<Quantity<UR>> for Quantity<UL> where
Quantity<{ UL.unit_mul(UR) }>: ,
[src]
Quantity<{ UL.unit_mul(UR) }>: ,
type Output = Quantity<{ UL.unit_mul(UR) }>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Quantity<UR>) -> Self::Output
[src]
impl<const U: SiUnit> Mul<f64> for Quantity<U>
[src]
type Output = Quantity<U>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: f64) -> Self::Output
[src]
impl<const U: SiUnit> MulAssign<f64> for Quantity<U>
[src]
pub fn mul_assign(&mut self, rhs: f64)
[src]
impl<const U: SiUnit> PartialEq<Quantity<U>> for Quantity<U>
[src]
pub fn eq(&self, other: &Quantity<U>) -> bool
[src]
pub fn ne(&self, other: &Quantity<U>) -> bool
[src]
impl<const U: SiUnit> PartialOrd<Quantity<U>> for Quantity<U>
[src]
pub fn partial_cmp(&self, other: &Quantity<U>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Quantity<U>) -> bool
[src]
pub fn le(&self, other: &Quantity<U>) -> bool
[src]
pub fn gt(&self, other: &Quantity<U>) -> bool
[src]
pub fn ge(&self, other: &Quantity<U>) -> bool
[src]
impl<const U: SiUnit> StructuralPartialEq for Quantity<U>
[src]
impl<const U: SiUnit> Sub<Quantity<U>> for Quantity<U>
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Self) -> Self
[src]
impl<const U: SiUnit> SubAssign<Quantity<U>> for Quantity<U>
[src]
pub fn sub_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl<const U: SiUnit> RefUnwindSafe for Quantity<U>
impl<const U: SiUnit> Send for Quantity<U>
impl<const U: SiUnit> Sync for Quantity<U>
impl<const U: SiUnit> Unpin for Quantity<U>
impl<const U: SiUnit> UnwindSafe for Quantity<U>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,