• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// @generated
2/// Implement `DataProvider<BidiClassValueToLongNameV1>` 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/// * 478B[^1] for the singleton data struct
8///
9/// [^1]: these numbers can be smaller in practice due to linker deduplication
10#[doc(hidden)]
11#[macro_export]
12macro_rules! __impl_bidi_class_value_to_long_name_v1 {
13    ($ provider : ty) => {
14        #[clippy::msrv = "1.81"]
15        const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
16        #[clippy::msrv = "1.81"]
17        impl $provider {
18            #[doc(hidden)]
19            pub const SINGLETON_BIDI_CLASS_VALUE_TO_LONG_NAME_V1: &'static <icu::properties::provider::BidiClassValueToLongNameV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::properties::provider::names::PropertyEnumToValueNameLinearMap { map: unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b"\x17\0\r\0\x1A\0)\0;\0N\0[\0k\0~\0\x8F\0\x9A\0\xA7\0\xBE\0\xD4\0\xE1\0\xF8\0\x0E\x01$\x013\x01C\x01W\x01l\x01\x81\x01Left_To_RightRight_To_LeftEuropean_NumberEuropean_SeparatorEuropean_TerminatorArabic_NumberCommon_SeparatorParagraph_SeparatorSegment_SeparatorWhite_SpaceOther_NeutralLeft_To_Right_EmbeddingLeft_To_Right_OverrideArabic_LetterRight_To_Left_EmbeddingRight_To_Left_OverridePop_Directional_FormatNonspacing_MarkBoundary_NeutralFirst_Strong_IsolateLeft_To_Right_IsolateRight_To_Left_IsolatePop_Directional_Isolate") } };
20        }
21        #[clippy::msrv = "1.81"]
22        impl icu_provider::DataProvider<icu::properties::provider::BidiClassValueToLongNameV1> for $provider {
23            fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::BidiClassValueToLongNameV1>, icu_provider::DataError> {
24                if req.id.locale.is_default() {
25                    Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_BIDI_CLASS_VALUE_TO_LONG_NAME_V1), metadata: icu_provider::DataResponseMetadata::default() })
26                } else {
27                    Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::BidiClassValueToLongNameV1 as icu_provider::DataMarker>::INFO, req))
28                }
29            }
30        }
31    };
32    ($ provider : ty , ITER) => {
33        __impl_bidi_class_value_to_long_name_v1!($provider);
34        #[clippy::msrv = "1.81"]
35        impl icu_provider::IterableDataProvider<icu::properties::provider::BidiClassValueToLongNameV1> for $provider {
36            fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
37                Ok([Default::default()].into_iter().collect())
38            }
39        }
40    };
41    ($ provider : ty , DRY) => {
42        __impl_bidi_class_value_to_long_name_v1!($provider);
43        #[clippy::msrv = "1.81"]
44        impl icu_provider::DryDataProvider<icu::properties::provider::BidiClassValueToLongNameV1> for $provider {
45            fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
46                if req.id.locale.is_default() {
47                    Ok(icu_provider::DataResponseMetadata::default())
48                } else {
49                    Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::BidiClassValueToLongNameV1 as icu_provider::DataMarker>::INFO, req))
50                }
51            }
52        }
53    };
54    ($ provider : ty , DRY , ITER) => {
55        __impl_bidi_class_value_to_long_name_v1!($provider);
56        #[clippy::msrv = "1.81"]
57        impl icu_provider::DryDataProvider<icu::properties::provider::BidiClassValueToLongNameV1> for $provider {
58            fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
59                if req.id.locale.is_default() {
60                    Ok(icu_provider::DataResponseMetadata::default())
61                } else {
62                    Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::BidiClassValueToLongNameV1 as icu_provider::DataMarker>::INFO, req))
63                }
64            }
65        }
66        #[clippy::msrv = "1.81"]
67        impl icu_provider::IterableDataProvider<icu::properties::provider::BidiClassValueToLongNameV1> for $provider {
68            fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
69                Ok([Default::default()].into_iter().collect())
70            }
71        }
72    };
73}
74#[doc(inline)]
75pub use __impl_bidi_class_value_to_long_name_v1 as impl_bidi_class_value_to_long_name_v1;
76