Macro rustc_baked_icu_data::data::impl_data_provider
source · macro_rules! impl_data_provider {
($ provider : path) => { ... };
}Expand description
Implement DataProvider<M> on the given struct using the data
hardcoded in this module. This allows the struct to be used with
icu’s _unstable constructors.
This macro can only be called from its definition-site, i.e. right
after include!-ing the generated module.
ⓘ
struct MyDataProvider;
include!("/path/to/generated/mod.rs");
impl_data_provider(MyDataProvider);