[][src]Struct metfor::StatuteMiles

pub struct StatuteMiles(pub f64);

Length in statute miles, usually used for visibility.

Methods

impl StatuteMiles[src]

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

Find the maximum for two values

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

Find the minimum for two values

Trait Implementations

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

type Output = StatuteMiles

The resulting type after applying the + operator.

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

impl Clone for StatuteMiles[src]

impl Copy for StatuteMiles[src]

impl Debug for StatuteMiles[src]

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

type Output = f64

The resulting type after applying the / operator.

impl DivAssign<f64> for StatuteMiles[src]

impl From<Cm> for StatuteMiles[src]

impl From<Decameters> for StatuteMiles[src]

impl From<Feet> for StatuteMiles[src]

impl From<Inches> for StatuteMiles[src]

impl From<Km> for StatuteMiles[src]

impl From<Meters> for StatuteMiles[src]

impl From<Mm> for StatuteMiles[src]

impl From<StatuteMiles> for Km[src]

impl From<StatuteMiles> for Decameters[src]

impl From<StatuteMiles> for Meters[src]

impl From<StatuteMiles> for Cm[src]

impl From<StatuteMiles> for Mm[src]

impl From<StatuteMiles> for Feet[src]

impl From<StatuteMiles> for Inches[src]

impl Length for StatuteMiles[src]

impl Mul<f64> for StatuteMiles[src]

type Output = StatuteMiles

The resulting type after applying the * operator.

impl MulAssign<f64> for StatuteMiles[src]

impl Neg for StatuteMiles[src]

type Output = StatuteMiles

The resulting type after applying the - operator.

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

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

impl Quantity for StatuteMiles[src]

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

type Output = StatuteMiles

The resulting type after applying the - operator.

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

Auto Trait Implementations

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.