Expand description
Conversion between units of time.
Modulesยง
- sealed ๐
Macrosยง
- declare_
types ๐ - Declare all unit types.
- impl_
partial_ ๐eq_ ord - Implement
PartialEqandPartialOrdbetween unit types. - impl_
partial_ ๐eq_ ord_ for_ unit - Symmetrically implement
PartialEqandPartialOrdbetweenUnitand all unit types. - impl_
per ๐ - Implement
Perfor all relevant types. Identity implementations are automatic. - stringify_
outputs ๐ - Given the list of types, stringify them as a list.
Structsยง
- Day
- A unit of time representing exactly
Ndays. - Hour
- A unit of time representing exactly
Nhours. - Microsecond
- A unit of time representing exactly
Nmicroseconds. - Millisecond
- A unit of time representing exactly
Nmilliseconds. - Minute
- A unit of time representing exactly
Nminutes. - Nanosecond
- A unit of time representing exactly
Nnanoseconds. - Second
- A unit of time representing exactly
Nseconds. - Week
- A unit of time representing exactly
Nweeks.
Enumsยง
- Unit
- A statically-known multiple of a given unit of time.
Functionsยง
- multiple_
of_ ๐value