Debian Codegraph @

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

raw
1 // @generated
2 /// Implement `DataProvider<PropertyNameLongSentenceBreakV1>` 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 /// * 128B[^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 /// * `zerovec`
15 #[doc(hidden)]
16 #[macro_export]
17 macro_rules! __impl_property_name_long_sentence_break_v1 {
18 ($ provider : ty) => {
19 #[clippy::msrv = "1.83"]
20 const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
21 #[clippy::msrv = "1.83"]
22 impl $provider {
23 #[doc(hidden)]
24 pub const SINGLETON_PROPERTY_NAME_LONG_SENTENCE_BREAK_V1: &'static <icu::properties::provider::PropertyNameLongSentenceBreakV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::properties::provider::names::PropertyEnumToValueNameLinearMap { map: unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x0F\0\x05\0\n\0\x0F\0\x15\0\x1A\0!\0(\0+\0-\x002\x007\09\0?\0A\0OtherATermCloseFormatLowerNumericOLetterSepSpSTermUpperCRExtendLFSContinue") } };
25 }
26 #[clippy::msrv = "1.83"]
27 impl icu_provider::DataProvider<icu::properties::provider::PropertyNameLongSentenceBreakV1> for $provider {
28 fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::PropertyNameLongSentenceBreakV1>, icu_provider::DataError> {
29 if req.id.locale.is_unknown() {
30 Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_PROPERTY_NAME_LONG_SENTENCE_BREAK_V1), metadata: icu_provider::DataResponseMetadata::default() })
31 } else {
32 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameLongSentenceBreakV1 as icu_provider::DataMarker>::INFO, req))
33 }
34 }
35 }
36 };
37 ($ provider : ty , ITER) => {
38 __impl_property_name_long_sentence_break_v1!($provider);
39 #[clippy::msrv = "1.83"]
40 impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyNameLongSentenceBreakV1> for $provider {
41 fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
42 Ok([Default::default()].into_iter().collect())
43 }
44 }
45 };
46 ($ provider : ty , DRY) => {
47 __impl_property_name_long_sentence_break_v1!($provider);
48 #[clippy::msrv = "1.83"]
49 impl icu_provider::DryDataProvider<icu::properties::provider::PropertyNameLongSentenceBreakV1> for $provider {
50 fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
51 if req.id.locale.is_unknown() {
52 Ok(icu_provider::DataResponseMetadata::default())
53 } else {
54 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameLongSentenceBreakV1 as icu_provider::DataMarker>::INFO, req))
55 }
56 }
57 }
58 };
59 ($ provider : ty , DRY , ITER) => {
60 __impl_property_name_long_sentence_break_v1!($provider);
61 #[clippy::msrv = "1.83"]
62 impl icu_provider::DryDataProvider<icu::properties::provider::PropertyNameLongSentenceBreakV1> for $provider {
63 fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
64 if req.id.locale.is_unknown() {
65 Ok(icu_provider::DataResponseMetadata::default())
66 } else {
67 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameLongSentenceBreakV1 as icu_provider::DataMarker>::INFO, req))
68 }
69 }
70 }
71 #[clippy::msrv = "1.83"]
72 impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyNameLongSentenceBreakV1> for $provider {
73 fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
74 Ok([Default::default()].into_iter().collect())
75 }
76 }
77 };
78 }
79 #[doc(inline)]
80 pub use __impl_property_name_long_sentence_break_v1 as impl_property_name_long_sentence_break_v1;