// @generated /// Implement `DataProvider` 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: /// * 1670B for the lookup data structure (317 data identifiers) /// * 30777B[^1] for the actual data (95 unique structs) /// /// [^1]: these numbers can be smaller in practice due to linker deduplication #[doc(hidden)] #[macro_export] macro_rules! __impl_unit_list_v2_marker { ($ provider : ty) => { #[clippy::msrv = "1.71.1"] const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO; #[clippy::msrv = "1.71.1"] impl $provider { const DATA_UNIT_LIST_V2_MARKER: icu_provider_baked::zerotrie::Data = icu_provider_baked::zerotrie::Data { trie: icu_provider_baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xE1yabcdefghijklmnoprstuvwxyz\0\0\0\0\x01\x01\x01\x02\x02\x02\x03\x03\x03\x03\x03\x04\x04\x04\x05\x05\x05\x05\x05\x05?\x8D\xCC\xFDN\x9D\xC1\x1A]o&K\xB7\xDB\xDF\x1B;\xFAO\x98\xAC\xB1\xB6\xF4\xC5fkmrs\x03\x0F\x19%\x1EN\x80\x1E\xC3NSW\x01\x03\x80\x90\x1E\x90\x1E\x1E\xC3NSW\x01\x02\x81\x81\x81\x1E\xC3NSW\x01\x03\x82\x90\x1F\x90\x1F\xC2\x1Et\x02N\x80\x1E\xC3NSW\x01\x02\x83\x83\x83\xC5eglrs\n\x14\x1E)\x1E\xC3NSW\x01\x02\x80\x80\x80\x1E\xC3NSW\x01\x02\x84\x84\x87o\x1E\xC2SW\x02\x90\x15\x90\x15x\x1E\xC3NSW\x01\x02\x85\x85\x85\xC2\x1E-\t\xC3NSW\x01\x02\x86\x86\x86Cyrl\x1E\xC3NSW\x01\x02\x87\x87\x87\xC5aehsv\n\x0E\x12+\x1E\xC3NSW\x01\x02\x86\x86\x86b\x1EN\x80r\x1EN\x80\xC2\x1Ew\x0B\xC3NSW\x01\x03\x80\x90 \x90:\x1E\xC3NSW\x01\x02\x88\x88\x88\x1E\xC3NSW\x01\x02\x80\x80\x80\xC4aeos\n\x14\x1F\x1E\xC3NSW\x01\x02\x89\x89\x89\x1E\xC3NSW\x01\x02\x8A\x8A\x8Ai\x1E\xC3NSW\x01\x02\x8B\x8B\x8Bb\x1E\xC2SW\x02\x90!\x90;\xC6elnstu\n\r\x108;\x1E\xC3NSW\x01\x02\x8C\x8C\x8C\x1EN\x80\x1EN\x80\xC2\x1E-\x0B\xC3NSW\x01\x03\x80\x90\"\x90#\xC3DPU\t\x0EO\x1E\xC2NS\x01\x8D\x90#Y\x1ES\x90#S\x1ES\x90#\x1EN\x80\x1E\xC3NSW\x01\x02\x8E\x8E\x8E\xC6afiory\x0C\x1D+3?\x1E\xC3NSW\x01\x03\x80\x90$\x90<-Adlm\x1E\xC3NSW\x01\x03\x80\x90%\x90=\xC2\x1El\x07\xC2NW\x01\x80\x90>\x1EN\x80\x1E\xC2NW\x01\x80\x90?\x1E\xC3NSW\x01\x03\x80\x90&\x90&\x1EW\x90@\xC4adlu\x08\x14\x18\x1E\xC2NW\x01\x80\x90A\x1E\xC3NSW\x01\x03\x80\x90'\x90A\x1EW\x90\x0E\x1EW\x90B\xC6eirsuy\x08 *4A\x1E\xC2NW\x01\x80\x90C\xC2\x1E-\x07\xC2NW\x01\x8F\x90\tLatn\x1E\xC2NW\x02\x90\0\x90D\x1E\xC3NSW\x01\x02\x80\x86\x86b\x1E\xC2SW\x02\x90!\x90;\x1E\xC3NSW\x02\x04\x90\x01\x90\x01\x90\x01\x1E\xC3NSW\x01\x03\x80\x90(\x90E\xC6aegist\x03\x10\x13 +\x1EN\x80\x1E\xC3NSW\x02\x04\x90\x02\x90\x02\x90\x02\x1EN\x8F\x1E\xC3NSW\x02\x04\x90\x03\x90\x03\x90\x03\x1E\xC3NSW\x02\x03\x90\x04\x89\x89\x1E\xC3NSW\x01\x03\x80\x90\x0E\x90\x0E\xC2av\x0B\x1E\xC3NSW\x02\x03\x90\x05\x80\x80\x1EN\x80\xCAegkmnosuxy\x04\x11\x1B%)9Zf\xA0a\x1EW\x86p\x1E\xC3NSW\x01\x03\x80\x90)\x90)\x1E\xC3NSW\x01\x02\x80\x80\x80\x1E\xC3NSW\x01\x02\x80\x80\x80\x1EN\x90\x06\xC2\x1Ek\t\xC3NSW\x01\x02\x80\x80\x80\x1EN\x80\xC2\x1E-\x0C\xC3NSW\x02\x04\x90\x07\x90\x07\x90\x07Deva\x1E\xC3NSW\x02\x04\x90\x08\x90\x08\x90\x08\x1E\xC3NSW\x01\x03\x80\x90*\x90*v\xC2\x1E-\x02N\x80\xC3DOT\x0F\x1Eeva\x1E\xC3NSW\x01\x03\x80\x90+\x90+rya\x1E\xC3NSW\x01\x03\x80\x90,\x90,elu\x1E\xC3NSW\x01\x03\x80\x90-\x90-\x1EN\x80\xC4botv\x03\x06\x11\x1EN\x80\x1EN\x80\x1E\xC3NSW\x01\x02\x80\x80\x90F\x1E\xC3NSW\x01\x03\x80\x90.\x90.\xC9aiklnrsty\x0E\x11\x1B\x1F9 for $provider { fn load(&self, req: icu_provider::DataRequest) -> Result, icu_provider::DataError> { let mut metadata = icu_provider::DataResponseMetadata::default(); let payload = if let Some(payload) = icu_provider_baked::DataStore::get(&Self::DATA_UNIT_LIST_V2_MARKER, req.id, req.metadata.attributes_prefix_match) { payload } else { const FALLBACKER: icu::locale::fallback::LocaleFallbackerWithConfig<'static> = icu::locale::fallback::LocaleFallbacker::new().for_config(::INFO.fallback_config); let mut fallback_iterator = FALLBACKER.fallback_for(req.id.locale.clone()); loop { if let Some(payload) = icu_provider_baked::DataStore::get(&Self::DATA_UNIT_LIST_V2_MARKER, icu_provider::DataIdentifierBorrowed::for_marker_attributes_and_locale(req.id.marker_attributes, fallback_iterator.get()), req.metadata.attributes_prefix_match) { metadata.locale = Some(fallback_iterator.take()); break payload; } if fallback_iterator.get().is_default() { return Err(icu_provider::DataErrorKind::IdentifierNotFound.with_req(::INFO, req)); } fallback_iterator.step(); } }; Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(payload), metadata }) } } }; ($ provider : ty , ITER) => { __impl_unit_list_v2_marker!($provider); #[clippy::msrv = "1.71.1"] impl icu_provider::IterableDataProvider for $provider { fn iter_ids(&self) -> Result>, icu_provider::DataError> { Ok(icu_provider_baked::DataStore::iter(&Self::DATA_UNIT_LIST_V2_MARKER).collect()) } } }; ($ provider : ty , DRY) => {}; ($ provider : ty , DRY , ITER) => { __impl_unit_list_v2_marker!($provider, ITER); }; } #[doc(inline)] pub use __impl_unit_list_v2_marker as impl_unit_list_v2_marker;