// @generated include!("macros.rs"); macro_rules! impl_data_provider { ($ provider : ty) => { make_provider!($provider); impl_fallback_likelysubtags_v1!($provider); impl_fallback_parents_v1!($provider); impl_fallback_supplement_co_v1!($provider); impl_list_and_v1!($provider); }; } #[allow(unused_macros)] macro_rules! impl_any_provider { ($ provider : ty) => { #[clippy::msrv = "1.66"] impl icu_provider::AnyProvider for $provider { fn load_any(&self, key: icu_provider::DataKey, req: icu_provider::DataRequest) -> Result { match key.hashed() { h if h == ::KEY.hashed() => icu_provider::DataProvider::::load(self, req).map(icu_provider::DataResponse::wrap_into_any_response), h if h == ::KEY.hashed() => icu_provider::DataProvider::::load(self, req).map(icu_provider::DataResponse::wrap_into_any_response), h if h == ::KEY.hashed() => icu_provider::DataProvider::::load(self, req).map(icu_provider::DataResponse::wrap_into_any_response), h if h == ::KEY.hashed() => icu_provider::DataProvider::::load(self, req).map(icu_provider::DataResponse::wrap_into_any_response), _ => Err(icu_provider::DataErrorKind::MissingDataKey.with_req(key, req)), } } } }; } #[clippy::msrv = "1.66"] pub struct BakedDataProvider; impl_data_provider!(BakedDataProvider);