• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// @generated
2/// Implement `DataProvider<CanonicalCombiningClassValueToLongNameV1>` 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/// * 693B[^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_canonical_combining_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_CANONICAL_COMBINING_CLASS_VALUE_TO_LONG_NAME_V1: &'static <icu::properties::provider::CanonicalCombiningClassValueToLongNameV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::properties::provider::names::PropertyEnumToValueNameSparseMap {
20                map: unsafe {
21                    #[allow(unused_unsafe)]
22                    zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\0\0\x01\0\x06\0\x07\0\x08\0\t\0\n\0\x0B\0\x0C\0\r\0\x0E\0\x0F\0\x10\0\x11\0\x12\0\x13\0\x14\0\x15\0\x16\0\x17\0\x18\0\x19\0\x1A\0\x1B\0\x1C\0\x1D\0\x1E\0\x1F\0 \0!\0\"\0#\0$\0T\0[\0g\0k\0v\0z\0\x81\0\x82\0\x84\0\x85\0\xC8\0\xCA\0\xD6\0\xD8\0\xDA\0\xDC\0\xDE\0\xE0\0\xE2\0\xE4\0\xE6\0\xE8\0\xE9\0\xEA\0\xF0\0") }, unsafe { zerovec::vecs::VarZeroVec16::from_bytes_unchecked(b":\0\r\0\x14\0\x1F\0$\x000\x006\0;\0@\0E\0J\0O\0T\0Y\0^\0c\0h\0m\0r\0w\0|\0\x81\0\x86\0\x8B\0\x90\0\x95\0\x9A\0\x9F\0\xA4\0\xA9\0\xAE\0\xB3\0\xB8\0\xBD\0\xC2\0\xC7\0\xCD\0\xD3\0\xD9\0\xDF\0\xE5\0\xEB\0\xF1\0\xF7\0\n\x01\x18\x01&\x01:\x01D\x01I\x01T\x01X\x01]\x01g\x01l\x01w\x01\x83\x01\x8F\x01Not_ReorderedOverlayHan_ReadingNuktaKana_VoicingViramaCCC10CCC11CCC12CCC13CCC14CCC15CCC16CCC17CCC18CCC19CCC20CCC21CCC22CCC23CCC24CCC25CCC26CCC27CCC28CCC29CCC30CCC31CCC32CCC33CCC34CCC35CCC36CCC84CCC91CCC103CCC107CCC118CCC122CCC129CCC130CCC132CCC133Attached_Below_LeftAttached_BelowAttached_AboveAttached_Above_RightBelow_LeftBelowBelow_RightLeftRightAbove_LeftAboveAbove_RightDouble_BelowDouble_AboveIota_Subscript") })
23                },
24            };
25        }
26        #[clippy::msrv = "1.81"]
27        impl icu_provider::DataProvider<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1> for $provider {
28            fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1>, icu_provider::DataError> {
29                if req.id.locale.is_default() {
30                    Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_CANONICAL_COMBINING_CLASS_VALUE_TO_LONG_NAME_V1), metadata: icu_provider::DataResponseMetadata::default() })
31                } else {
32                    Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1 as icu_provider::DataMarker>::INFO, req))
33                }
34            }
35        }
36    };
37    ($ provider : ty , ITER) => {
38        __impl_canonical_combining_class_value_to_long_name_v1!($provider);
39        #[clippy::msrv = "1.81"]
40        impl icu_provider::IterableDataProvider<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1> 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_canonical_combining_class_value_to_long_name_v1!($provider);
48        #[clippy::msrv = "1.81"]
49        impl icu_provider::DryDataProvider<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1> for $provider {
50            fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
51                if req.id.locale.is_default() {
52                    Ok(icu_provider::DataResponseMetadata::default())
53                } else {
54                    Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1 as icu_provider::DataMarker>::INFO, req))
55                }
56            }
57        }
58    };
59    ($ provider : ty , DRY , ITER) => {
60        __impl_canonical_combining_class_value_to_long_name_v1!($provider);
61        #[clippy::msrv = "1.81"]
62        impl icu_provider::DryDataProvider<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1> for $provider {
63            fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
64                if req.id.locale.is_default() {
65                    Ok(icu_provider::DataResponseMetadata::default())
66                } else {
67                    Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1 as icu_provider::DataMarker>::INFO, req))
68                }
69            }
70        }
71        #[clippy::msrv = "1.81"]
72        impl icu_provider::IterableDataProvider<icu::properties::provider::CanonicalCombiningClassValueToLongNameV1> 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)]
80pub use __impl_canonical_combining_class_value_to_long_name_v1 as impl_canonical_combining_class_value_to_long_name_v1;
81