// @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: /// * 560B[^1] for the singleton data struct /// /// [^1]: these numbers can be smaller in practice due to linker deduplication #[doc(hidden)] #[macro_export] macro_rules! __impl_sentence_terminal_v1_marker { ($ provider : ty) => { #[clippy::msrv = "1.71.1"] const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO; #[clippy::msrv = "1.71.1"] impl $provider { #[doc(hidden)] pub const SINGLETON_SENTENCE_TERMINAL_V1_MARKER: &'static ::DataStruct = &icu::properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"!\0\0\"\0\0.\0\0/\0\0?\0\0@\0\0\x89\x05\0\x8A\x05\0\x1D\x06\0 \x06\0\xD4\x06\0\xD5\x06\0\0\x07\0\x03\x07\0\xF9\x07\0\xFA\x07\x007\x08\08\x08\09\x08\0:\x08\0=\x08\0?\x08\0d\t\0f\t\0J\x10\0L\x10\0b\x13\0c\x13\0g\x13\0i\x13\0n\x16\0o\x16\x005\x17\x007\x17\0\xD4\x17\0\xD6\x17\0\x03\x18\0\x04\x18\0\t\x18\0\n\x18\0D\x19\0F\x19\0\xA8\x1A\0\xAC\x1A\0N\x1B\0P\x1B\0Z\x1B\0\\\x1B\0^\x1B\0`\x1B\0}\x1B\0\x80\x1B\0;\x1C\0=\x1C\0~\x1C\0\x80\x1C\0$ \0% \0< \0> \0G \0J \0\xF9,\0\xFC,\0..\0/.\0<.\0=.\0S.\0U.\0\x020\0\x030\0\xFF\xA4\0\0\xA5\0\x0E\xA6\0\x10\xA6\0\xF3\xA6\0\xF4\xA6\0\xF7\xA6\0\xF8\xA6\0v\xA8\0x\xA8\0\xCE\xA8\0\xD0\xA8\0/\xA9\x000\xA9\0\xC8\xA9\0\xCA\xA9\0]\xAA\0`\xAA\0\xF0\xAA\0\xF2\xAA\0\xEB\xAB\0\xEC\xAB\0\x12\xFE\0\x13\xFE\0\x15\xFE\0\x17\xFE\0R\xFE\0S\xFE\0V\xFE\0X\xFE\0\x01\xFF\0\x02\xFF\0\x0E\xFF\0\x0F\xFF\0\x1F\xFF\0 \xFF\0a\xFF\0b\xFF\0V\n\x01X\n\x01U\x0F\x01Z\x0F\x01\x86\x0F\x01\x8A\x0F\x01G\x10\x01I\x10\x01\xBE\x10\x01\xC2\x10\x01A\x11\x01D\x11\x01\xC5\x11\x01\xC7\x11\x01\xCD\x11\x01\xCE\x11\x01\xDE\x11\x01\xE0\x11\x018\x12\x01:\x12\x01;\x12\x01=\x12\x01\xA9\x12\x01\xAA\x12\x01\xD4\x13\x01\xD6\x13\x01K\x14\x01M\x14\x01\xC2\x15\x01\xC4\x15\x01\xC9\x15\x01\xD8\x15\x01A\x16\x01C\x16\x01<\x17\x01?\x17\x01D\x19\x01E\x19\x01F\x19\x01G\x19\x01B\x1A\x01D\x1A\x01\x9B\x1A\x01\x9D\x1A\x01A\x1C\x01C\x1C\x01\xF7\x1E\x01\xF9\x1E\x01C\x1F\x01E\x1F\x01nj\x01pj\x01\xF5j\x01\xF6j\x017k\x019k\x01Dk\x01Ek\x01nm\x01pm\x01\x98n\x01\x99n\x01\x9F\xBC\x01\xA0\xBC\x01\x88\xDA\x01\x89\xDA\x01") }, 170u32) }); } #[clippy::msrv = "1.71.1"] impl icu_provider::DataProvider for $provider { fn load(&self, req: icu_provider::DataRequest) -> Result, icu_provider::DataError> { if req.id.locale.is_default() { Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_SENTENCE_TERMINAL_V1_MARKER), metadata: Default::default() }) } else { Err(icu_provider::DataErrorKind::InvalidRequest.with_req(::INFO, req)) } } } }; ($ provider : ty , ITER) => { __impl_sentence_terminal_v1_marker!($provider); #[clippy::msrv = "1.71.1"] impl icu_provider::IterableDataProvider for $provider { fn iter_ids(&self) -> Result>, icu_provider::DataError> { Ok([Default::default()].into_iter().collect()) } } }; ($ provider : ty , DRY) => { __impl_sentence_terminal_v1_marker!($provider); #[clippy::msrv = "1.71.1"] impl icu_provider::DryDataProvider for $provider { fn dry_load(&self, req: icu_provider::DataRequest) -> Result { if req.id.locale.is_default() { Ok(Default::default()) } else { Err(icu_provider::DataErrorKind::InvalidRequest.with_req(::INFO, req)) } } } }; ($ provider : ty , DRY , ITER) => { __impl_sentence_terminal_v1_marker!($provider); #[clippy::msrv = "1.71.1"] impl icu_provider::DryDataProvider for $provider { fn dry_load(&self, req: icu_provider::DataRequest) -> Result { if req.id.locale.is_default() { Ok(Default::default()) } else { Err(icu_provider::DataErrorKind::InvalidRequest.with_req(::INFO, req)) } } } #[clippy::msrv = "1.71.1"] impl icu_provider::IterableDataProvider for $provider { fn iter_ids(&self) -> Result>, icu_provider::DataError> { Ok([Default::default()].into_iter().collect()) } } }; } #[doc(inline)] pub use __impl_sentence_terminal_v1_marker as impl_sentence_terminal_v1_marker;