jiff::util::round::increment

Function for_span

Source
pub(crate) fn for_span(
    unit: Unit,
    increment: i64,
) -> Result<ri128<{ i128::MIN }, { i128::MAX }>, Error>
Expand description

Validates the given rounding increment for the given unit.

This validation ensures the rounding increment is valid for rounding spans.