pub enum Units {
Show 31 variants 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
}
Expand description

Unit enum.

Variants

yottasecond(yottasecond)

Tuple Fields

yottaseconds

zettasecond(zettasecond)

Tuple Fields

zettaseconds

exasecond(exasecond)

Tuple Fields

exaseconds

petasecond(petasecond)

Tuple Fields

petaseconds

terasecond(terasecond)

Tuple Fields

teraseconds

gigasecond(gigasecond)

Tuple Fields

gigaseconds

megasecond(megasecond)

Tuple Fields

megaseconds

kilosecond(kilosecond)

Tuple Fields

kiloseconds

hectosecond(hectosecond)

Tuple Fields

hectoseconds

decasecond(decasecond)

Tuple Fields

decaseconds

second(second)

Tuple Fields

0: second

seconds

decisecond(decisecond)

Tuple Fields

deciseconds

centisecond(centisecond)

Tuple Fields

centiseconds

millisecond(millisecond)

Tuple Fields

milliseconds

microsecond(microsecond)

Tuple Fields

microseconds

nanosecond(nanosecond)

Tuple Fields

nanoseconds

picosecond(picosecond)

Tuple Fields

picoseconds

femtosecond(femtosecond)

Tuple Fields

femtoseconds

attosecond(attosecond)

Tuple Fields

attoseconds

zeptosecond(zeptosecond)

Tuple Fields

zeptoseconds

yoctosecond(yoctosecond)

Tuple Fields

yoctoseconds

second_sidereal(second_sidereal)

Tuple Fields

seconds (sidereal)

day(day)

Tuple Fields

0: day

days

day_sidereal(day_sidereal)

Tuple Fields

days (sidereal)

hour(hour)

Tuple Fields

0: hour

hours

hour_sidereal(hour_sidereal)

Tuple Fields

hours (sidereal)

minute(minute)

Tuple Fields

0: minute

minutes

shake(shake)

Tuple Fields

0: shake

shakes

year(year)

Tuple Fields

0: year

years

year_sidereal(year_sidereal)

Tuple Fields

years (sidereal)

year_tropical(year_tropical)

Tuple Fields

years (tropical)

Implementations

Unit abbreviation.

Unit singular description.

Unit plural description.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.