impl_list_and_v1

Macro impl_list_and_v1 

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

Implement DataProvider<ListAndV1> 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:

  • 179B for the lookup data structure (33 data identifiers)
  • 4183B1 for the actual data (11 unique structs)

This macro requires the following crates:

  • icu_list
  • icu_locale/compiled_data
  • icu_provider
  • icu_provider/baked
  • zerovec

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