Macro icu_calendar::types::dt_unit
source ยท macro_rules! dt_unit { ($name:ident, $storage:ident, $value:expr, $docs:expr) => { ... }; }
Expand description
This macro defines a struct for 0-based date fields: hours, minutes, seconds and fractional seconds. Each unit is bounded by a range. The traits implemented here will return a Result on whether or not the unit is in range from the given input.