Debian Codegraph @

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

raw
1 // @generated
2 /// Implement `DataProvider<PropertyNameParseBidiClassV1>` 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 /// * 463B[^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_bidi_class_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_BIDI_CLASS_V1: &'static <icu::properties::provider::PropertyNameParseBidiClassV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::properties::provider::names::PropertyValueNameToEnumMap { map: zerotrie::ZeroTrieSimpleAscii { store: unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xE1lABCEFLNOPRSW\0\0\0\0\0\0\0\0\x01\x01\x01\x1D4Hy\x94\xCF\xE5\xF67r\x84\xC3LNr\x01\x02\x8D\x85abic_\xC2LN\x06etter\x8Dumber\x85\x87\xC2No\x02\x90\x02undary_Neutral\x90\x02\xC2So\x01\x86mmon_Separator\x86\xC4NSTu\x01\x02\x03\x82\x83\x84ropean_\xC3NST\x06\x0Fumber\x82eparator\x83erminator\x84\xC2Si\x03I\x90\x03rst_Strong_Isolate\x90\x03\x80\xC2Re\n\xC3EIO\x01\x03\x8B\x90\x04\x8Cft_To_Right\x80_\xC3EIO\t\x11mbedding\x8Bsolate\x90\x04verride\x8C\xC2So\x03M\x90\x01nspacing_Mark\x90\x01\xC2Nt\x01\x8Aher_Neutral\x8A\xC3Dao\x08\x1A\xC2FI\x02\x90\0\x90\x06ragraph_Separator\x87p_Directional_\xC2FI\x07ormat\x90\0solate\x90\x06\x81\xC2Li\n\xC3EIO\x01\x03\x8E\x90\x05\x8Fght_To_Left\x81_\xC3EIO\t\x11mbedding\x8Esolate\x90\x05verride\x8F\x88egment_Separator\x88\xC2Sh\x01\x89ite_Space\x89") } } };
26 }
27 #[clippy::msrv = "1.83"]
28 impl icu_provider::DataProvider<icu::properties::provider::PropertyNameParseBidiClassV1> for $provider {
29 fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::PropertyNameParseBidiClassV1>, 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_BIDI_CLASS_V1), metadata: icu_provider::DataResponseMetadata::default() })
32 } else {
33 Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyNameParseBidiClassV1 as icu_provider::DataMarker>::INFO, req))
34 }
35 }
36 }
37 };
38 ($ provider : ty , ITER) => {
39 __impl_property_name_parse_bidi_class_v1!($provider);
40 #[clippy::msrv = "1.83"]
41 impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyNameParseBidiClassV1> 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_bidi_class_v1!($provider);
49 #[clippy::msrv = "1.83"]
50 impl icu_provider::DryDataProvider<icu::properties::provider::PropertyNameParseBidiClassV1> 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::PropertyNameParseBidiClassV1 as icu_provider::DataMarker>::INFO, req))
56 }
57 }
58 }
59 };
60 ($ provider : ty , DRY , ITER) => {
61 __impl_property_name_parse_bidi_class_v1!($provider);
62 #[clippy::msrv = "1.83"]
63 impl icu_provider::DryDataProvider<icu::properties::provider::PropertyNameParseBidiClassV1> 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::PropertyNameParseBidiClassV1 as icu_provider::DataMarker>::INFO, req))
69 }
70 }
71 }
72 #[clippy::msrv = "1.83"]
73 impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyNameParseBidiClassV1> 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_bidi_class_v1 as impl_property_name_parse_bidi_class_v1;