[][src]Struct metfor::Mm

pub struct Mm(pub f64);

Length in millimeters, usually used for precipitation depth or precipitable water.

Methods

impl Mm[src]

pub fn max(self, other: Mm) -> Self[src]

Find the maximum for two values

pub fn min(self, other: Mm) -> Self[src]

Find the minimum for two values

Trait Implementations

impl<T> Add<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

type Output = Mm

The resulting type after applying the + operator.

impl<T> AddAssign<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

impl Clone for Mm[src]

impl Copy for Mm[src]

impl Debug for Mm[src]

impl<T> Div<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

type Output = f64

The resulting type after applying the / operator.

impl DivAssign<f64> for Mm[src]

impl From<Cm> for Mm[src]

impl From<Decameters> for Mm[src]

impl From<Feet> for Mm[src]

impl From<Inches> for Mm[src]

impl From<Km> for Mm[src]

impl From<Meters> for Mm[src]

impl From<Mm> for Km[src]

impl From<Mm> for Decameters[src]

impl From<Mm> for Meters[src]

impl From<Mm> for Cm[src]

impl From<Mm> for StatuteMiles[src]

impl From<Mm> for Feet[src]

impl From<Mm> for Inches[src]

impl From<StatuteMiles> for Mm[src]

impl Length for Mm[src]

impl Mul<f64> for Mm[src]

type Output = Mm

The resulting type after applying the * operator.

impl MulAssign<f64> for Mm[src]

impl Neg for Mm[src]

type Output = Mm

The resulting type after applying the - operator.

impl<T> PartialEq<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

impl<T> PartialOrd<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

impl Quantity for Mm[src]

impl<T> Sub<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

type Output = Mm

The resulting type after applying the - operator.

impl<T> SubAssign<T> for Mm where
    Mm: From<T> + Quantity,
    T: Quantity
[src]

Auto Trait Implementations

impl RefUnwindSafe for Mm

impl Send for Mm

impl Sync for Mm

impl Unpin for Mm

impl UnwindSafe for Mm

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.