Module span

Source

Macrosยง

impl_to_span ๐Ÿ”’

Structsยง

Nudge ๐Ÿ”’
The result of a span rounding strategy. There are three:
RelativeCivil ๐Ÿ”’
A wrapper around a civil datetime and a timestamp corresponding to that civil datetime in UTC.
RelativeSpan ๐Ÿ”’
A balanced span between a range of civil or zoned datetimes.
RelativeZoned ๐Ÿ”’
A simple wrapper around a possibly borrowed Zoned.
Span
A span of time represented via a mixture of calendar and clock units.
SpanArithmetic
Options for Span::checked_add and Span::checked_sub.
SpanCompare
Options for Span::compare.
SpanFieldwise
A wrapper for Span that implements the Hash, Eq and PartialEq traits.
SpanRelativeTo
A relative datetime for use with Span APIs.
SpanRound
Options for Span::round.
SpanTotal
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 Span APIs.
RelativeSpanKind ๐Ÿ”’
A civil or zoned datetime range of time.
SpanRelativeToKind ๐Ÿ”’
Unit
A way to refer to a single calendar or clock unit.

Traitsยง

ToSpan
A trait for enabling concise literals for creating Span values.

Functionsยง

clamp_relative_span ๐Ÿ”’
Returns the nanosecond timestamps of relative + span and relative + {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.