[][src]Struct const_unit_poc::Quantity

#[repr(transparent)]pub struct Quantity<const U: SiUnit> {
    pub raw_value: f64,
}

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.

impl<const U: SiUnit> AddAssign<Quantity<U>> for Quantity<U>[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]

type Output = Quantity<{ U.neg() }>

The resulting type after applying the / operator.

impl<const UL: SiUnit, const UR: SiUnit> Div<Quantity<UR>> for Quantity<UL> where
    Quantity<{ UL.unit_div(UR) }>: , 
[src]

type Output = Quantity<{ UL.unit_div(UR) }>

The resulting type after applying the / operator.

impl<const U: SiUnit> Div<f64> for Quantity<U>[src]

type Output = Quantity<U>

The resulting type after applying the / operator.

impl<const U: SiUnit> DivAssign<f64> for Quantity<U>[src]

impl<const U: SiUnit> Mul<Quantity<U>> for f64[src]

type Output = Quantity<U>

The resulting type after applying the * operator.

impl<const UL: SiUnit, const UR: SiUnit> Mul<Quantity<UR>> for Quantity<UL> where
    Quantity<{ UL.unit_mul(UR) }>: , 
[src]

type Output = Quantity<{ UL.unit_mul(UR) }>

The resulting type after applying the * operator.

impl<const U: SiUnit> Mul<f64> for Quantity<U>[src]

type Output = Quantity<U>

The resulting type after applying the * operator.

impl<const U: SiUnit> MulAssign<f64> for Quantity<U>[src]

impl<const U: SiUnit> PartialEq<Quantity<U>> for Quantity<U>[src]

impl<const U: SiUnit> PartialOrd<Quantity<U>> for Quantity<U>[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.

impl<const U: SiUnit> SubAssign<Quantity<U>> for Quantity<U>[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.