Expand description
The Duration
struct and its associated impl
s.
Macrosยง
- duration_
mul_ ๐div_ int ImplementMul
(reflexively) andDiv
forDuration
for various types. - try_
from_ ๐secs This is adapted from thestd
implementation, which uses mostly bit operations to ensure the highest precision:
Structsยง
- A span of time with nanosecond precision.
Enumsยง
- Padding ๐By explicitly inserting this enum where padding is expected, the compiler is able to better perform niche value optimization.
Type Aliasesยง
- Nanoseconds ๐The type of the
nanosecond
field ofDuration
.