Macro impl_datetime_patterns_glue_v1
macro_rules! impl_datetime_patterns_glue_v1 {
($ provider : ty) => { ... };
($ provider : ty , ITER) => { ... };
($ provider : ty , DRY) => { ... };
($ provider : ty , DRY , ITER) => { ... };
}Expand description
Implement DataProvider<DatetimePatternsGlueV1> 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:
- 3509B for the lookup data structure (700 data identifiers)
- 9636B1 for the actual data (202 unique structs)
This macro requires the following crates:
icuicu_providericu_provider/bakedzerovec
these numbers can be smaller in practice due to linker deduplication ↩