Enum uom::si::time::Units[][src]

pub enum Units {
    yottasecond(yottasecond),
    zettasecond(zettasecond),
    exasecond(exasecond),
    petasecond(petasecond),
    terasecond(terasecond),
    gigasecond(gigasecond),
    megasecond(megasecond),
    kilosecond(kilosecond),
    hectosecond(hectosecond),
    decasecond(decasecond),
    second(second),
    decisecond(decisecond),
    centisecond(centisecond),
    millisecond(millisecond),
    microsecond(microsecond),
    nanosecond(nanosecond),
    picosecond(picosecond),
    femtosecond(femtosecond),
    attosecond(attosecond),
    zeptosecond(zeptosecond),
    yoctosecond(yoctosecond),
    second_sidereal(second_sidereal),
    day(day),
    day_sidereal(day_sidereal),
    hour(hour),
    hour_sidereal(hour_sidereal),
    minute(minute),
    shake(shake),
    year(year),
    year_sidereal(year_sidereal),
    year_tropical(year_tropical),
    // some variants omitted
}

Unit enum.

Variants

yottasecond(yottasecond)

yottaseconds

zettasecond(zettasecond)

zettaseconds

exasecond(exasecond)

exaseconds

petasecond(petasecond)

petaseconds

terasecond(terasecond)

teraseconds

gigasecond(gigasecond)

gigaseconds

megasecond(megasecond)

megaseconds

kilosecond(kilosecond)

kiloseconds

hectosecond(hectosecond)

hectoseconds

decasecond(decasecond)

decaseconds

second(second)

seconds

decisecond(decisecond)

deciseconds

centisecond(centisecond)

centiseconds

millisecond(millisecond)

milliseconds

microsecond(microsecond)

microseconds

nanosecond(nanosecond)

nanoseconds

picosecond(picosecond)

picoseconds

femtosecond(femtosecond)

femtoseconds

attosecond(attosecond)

attoseconds

zeptosecond(zeptosecond)

zeptoseconds

yoctosecond(yoctosecond)

yoctoseconds

second_sidereal(second_sidereal)

seconds (sidereal)

day(day)

days

day_sidereal(day_sidereal)

days (sidereal)

hour(hour)

hours

hour_sidereal(hour_sidereal)

hours (sidereal)

minute(minute)

minutes

shake(shake)

shakes

year(year)

years

year_sidereal(year_sidereal)

years (sidereal)

year_tropical(year_tropical)

years (tropical)

Implementations

impl Units[src]

pub fn abbreviation(&self) -> &'static str[src]

Unit abbreviation.

pub fn singular(&self) -> &'static str[src]

Unit singular description.

pub fn plural(&self) -> &'static str[src]

Unit plural description.

Trait Implementations

impl Clone for Units[src]

impl Copy for Units[src]

impl Debug for Units[src]

Auto Trait Implementations

impl RefUnwindSafe for Units

impl Send for Units

impl Sync for Units

impl Unpin for Units

impl UnwindSafe for Units

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> Same<T> for T[src]

type Output = T

Should always be Self

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.