Debian Codegraph @

debian/missing-sources/icu_properties_data/data/property_name_parse_sentence_break_v1.rs.data

raw
1 // @generated
2 /// Implement `DataProvider<PropertyNameParseSentenceBreakV1>` on the given struct using the data
3 /// hardcoded in this file. This allows the struct to be used with
4 /// `icu`'s `_unstable` constructors.
5 ///
6 /// Using this implementation will embed the following data in the binary's data segment:
7 /// * 164B[^1] for the singleton data struct
8 ///
9 /// [^1]: these numbers can be smaller in practice due to linker deduplication
10 ///
11 /// This macro requires the following crates:
12 /// * `icu`
13 /// * `icu_provider`
14 /// * `zerotrie`
15 /// * `zerovec`
16 #[doc(hidden)]
17 #[macro_export]
18 macro_rules! __impl_property_name_parse_sentence_break_v1 {
19 ($ provider : ty) => {
20 #[clippy::msrv = "1.83"]
21 const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
22 #[clippy::msrv = "1.83"]
23 impl $provider {
24 #[doc(hidden)]
25 pub const SINGLETON_PROPERTY_NAME_PARSE_SENTENCE_BREAK_V1: &'static <icu::properties::provider::PropertyNameParseSentenceBreakV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::properties::provider::names::PropertyValueNameToEnumMap { map: zerotrie::ZeroTrieSimpleAscii { store: unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xCAACEFLNOSUX\x06\x12\x1C&5@NmvT\x81erm\x81\xC3LRl\x01\x02\x82\x8Bose\x82\xC2Xx\x01\x8Ctend\x8C\xC2Oo\x01\x83rmat\x83\xC4EFOo\x01\x02\x03\x86\x8D\x84wer\x84\xC2Uu\x01\x85meric\x85\xC2Lt\x06etter\x86her\x80\xC6CEPTep\t\n\x0B\x10\x12\x8Eontinue\x8E\x87\x88\x89erm\x89p\x87\x88\xC2Pp\x01\x8Aper\x8AX\x80") } } };
26 }
27 #[clippy::msrv = "1.83"]
28 impl icu_provider::DataProvider<icu::properties::provider::PropertyNameParseSentenceBreakV1> for $provider {
29 fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::PropertyNameParseSentenceBreakV1>, icu_provider::DataError> {
30 if req.id.locale.is_unknown() {
31 Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_PROPERTY_NAME_PARSE_SENTENCE_BREAK_V1), metadata: icu_provider::DataResponseMetadata::default() })
32 } else {
33 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameParseSentenceBreakV1 as icu_provider::DataMarker>::INFO, req))
34 }
35 }
36 }
37 };
38 ($ provider : ty , ITER) => {
39 __impl_property_name_parse_sentence_break_v1!($provider);
40 #[clippy::msrv = "1.83"]
41 impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyNameParseSentenceBreakV1> for $provider {
42 fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
43 Ok([Default::default()].into_iter().collect())
44 }
45 }
46 };
47 ($ provider : ty , DRY) => {
48 __impl_property_name_parse_sentence_break_v1!($provider);
49 #[clippy::msrv = "1.83"]
50 impl icu_provider::DryDataProvider<icu::properties::provider::PropertyNameParseSentenceBreakV1> for $provider {
51 fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
52 if req.id.locale.is_unknown() {
53 Ok(icu_provider::DataResponseMetadata::default())
54 } else {
55 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameParseSentenceBreakV1 as icu_provider::DataMarker>::INFO, req))
56 }
57 }
58 }
59 };
60 ($ provider : ty , DRY , ITER) => {
61 __impl_property_name_parse_sentence_break_v1!($provider);
62 #[clippy::msrv = "1.83"]
63 impl icu_provider::DryDataProvider<icu::properties::provider::PropertyNameParseSentenceBreakV1> for $provider {
64 fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
65 if req.id.locale.is_unknown() {
66 Ok(icu_provider::DataResponseMetadata::default())
67 } else {
68 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameParseSentenceBreakV1 as icu_provider::DataMarker>::INFO, req))
69 }
70 }
71 }
72 #[clippy::msrv = "1.83"]
73 impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyNameParseSentenceBreakV1> for $provider {
74 fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
75 Ok([Default::default()].into_iter().collect())
76 }
77 }
78 };
79 }
80 #[doc(inline)]
81 pub use __impl_property_name_parse_sentence_break_v1 as impl_property_name_parse_sentence_break_v1;