Macrosยง
- impl_
to_ ๐span
Structsยง
- Nudge ๐
- The result of a span rounding strategy. There are three:
- Relative
Civil ๐ - A wrapper around a civil datetime and a timestamp corresponding to that civil datetime in UTC.
- Relative
Span ๐ - A balanced span between a range of civil or zoned datetimes.
- Relative
Zoned ๐ - A simple wrapper around a possibly borrowed
Zoned. - Span
- A span of time represented via a mixture of calendar and clock units.
- Span
Arithmetic - Options for
Span::checked_addandSpan::checked_sub. - Span
Compare - Options for
Span::compare. - Span
Fieldwise - A wrapper for
Spanthat implements theHash,EqandPartialEqtraits. - Span
Relative To - A relative datetime for use with
SpanAPIs. - Span
Round - Options for
Span::round. - Span
Total - Options for
Span::total. - UnitSet ๐
- A bit set that keeps track of all non-zero units on a
Span.
Enumsยง
- Relative ๐
- An internal abstraction for managing a relative datetime for use in some
SpanAPIs. - Relative
Span ๐Kind - A civil or zoned datetime range of time.
- Span
Relative ๐ToKind - Unit
- A way to refer to a single calendar or clock unit.
Traitsยง
Functionsยง
- clamp_
relative_ ๐span - Returns the nanosecond timestamps of
relative + spanandrelative + {amount of unit} + span. - parse_
iso_ ๐or_ friendly - A common parsing function that works in bytes.
- requires_
relative_ ๐date_ err - round_
span_ ๐invariant - Rounds a span consisting of only invariant units.