icu_experimental_data

Macro impl_short_hour_relative_v1

macro_rules! impl_short_hour_relative_v1 {
    ($ provider : ty) => { ... };
    ($ provider : ty , ITER) => { ... };
    ($ provider : ty , DRY) => { ... };
    ($ provider : ty , DRY , ITER) => { ... };
}
Expand description

Implement DataProvider<ShortHourRelativeV1> on the given struct using the data hardcoded in this file. This allows the struct to be used with icu’s _unstable constructors.

Using this implementation will embed the following data in the binary’s data segment:

  • 729B for the lookup data structure (144 data identifiers)
  • 22381B1 for the actual data (142 unique structs)

  1. these numbers can be smaller in practice due to linker deduplication