#[non_exhaustive]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),
}
Expand description
Unit enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Units
impl RefUnwindSafe for Units
impl Send for Units
impl Sync for Units
impl Unpin for Units
impl UnwindSafe for Units
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more