[][src]Enum cpc::units::UnitType

pub enum UnitType {
    NoType,
    Time,
    Length,
    Area,
    Volume,
    Mass,
    DigitalStorage,
    Energy,
    Power,
    Pressure,
    Speed,
    Temperature,
}

An enum of all possible unit types, like Length, DigitalStorage etc. There is also a NoType unit type for normal numbers.

Variants

NoType

A normal number, for example 5

Time

A unit of time, for example Hour

Length

A unit of length, for example Mile

Area

A unit of area, for example SquareKilometer

Volume

A unit of volume, for example Liter or Tablespoon

Mass

A unit of mass, for example Kilobyte

DigitalStorage

A unit of digital storage, for example Kilobyte

Energy

A unit of energy, for example Joule or KilowattHour

Power

A unit of power, for example Watt

Pressure

A unit of pressure, for example Bar

Speed

A unit of x, for example KilometersPerHour

Temperature

A unit of temperature, for example Kelvin

Trait Implementations

impl Clone for UnitType[src]

impl Copy for UnitType[src]

impl Debug for UnitType[src]

impl PartialEq<UnitType> for UnitType[src]

impl StructuralPartialEq for UnitType[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.