jiff::fmt::friendly::parser

Function set_span_unit_value

Source
fn set_span_unit_value(
    unit: Unit,
    value: ri64<{ _ }, { _ }>,
    span: Span,
) -> Result<Span, Error>
Expand description

Set the given unit to the given value on the given span.

If the value outside the legal boundaries for the given unit, then an error is returned.