Module bounds

Defines boundary types and their corresponding error values.

The main trait in this module is Bounds. It is implemented by each of several boundary types describing a range of contiguous values used by Jiff. For example, Year corresponds to the range of support calendar year values.

Each range type has concrete methods defined on it that simply forward to its corresponding method on Bounds. For example, Year::check forwards to the default implementation of Bounds::check. These concrete wrappers exist to make calling the routines more ergonomic. For example, they don't require that the Bounds trait be in scope. Additionally, a Year::checkc concrete method is provide for use in const contexts. This is not available on the Bounds trait because generics are not yet supported (as of 2026-02-13) in a const context.

Modules

Structs

Enums

Traits