Settings
Help

Module util

Module util 

Source

StructsΒ§

Decimal πŸ”’
A formatted decimal number that can be converted to a sequence of bytes.
DecimalFormatter πŸ”’
A simple formatter for converting i64 values to ASCII byte strings.
DurationUnits πŸ”’
A container for holding a partially parsed duration.
Fractional πŸ”’
A formatted fractional number that can be converted to a sequence of bytes.
FractionalFormatter πŸ”’
A simple formatter for converting fractional components to ASCII byte strings.

FunctionsΒ§

duration_unit_value πŸ”’
Returns the given parsed value, interpreted as the given unit, as a SignedDuration.
fractional_duration πŸ”’
Converts the fraction of the given unit to a signed duration.
fractional_time_to_duration πŸ”’
Like fractional_time_to_span, but just converts the fraction of the given unit to a signed duration.
fractional_time_to_span πŸ”’
This routine returns a span based on the given unit and value with fractional time applied to it.
parse_temporal_fraction πŸ”’
Parses an optional fractional number from the start of input.