Source code

Revision control

Copy as Markdown

Other Tools

// @generated
/// Implement `DataProvider<BidiMirroredV1Marker>` on the given struct using the data
/// hardcoded in this file. This allows the struct to be used with
/// `icu`'s `_unstable` constructors.
#[doc(hidden)]
#[macro_export]
macro_rules! __impl_props_bidi_m_v1 {
($ provider : ty) => {
#[clippy::msrv = "1.67"]
const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
#[clippy::msrv = "1.67"]
impl $provider {
#[doc(hidden)]
pub const SINGLETON_PROPS_BIDI_M_V1: &'static <icu::properties::provider::BidiMirroredV1Marker as icu_provider::DataMarker>::Yokeable = &icu::properties::provider::PropertyCodePointSetV1::InversionList(unsafe {
#[allow(unused_unsafe)]
icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"(\0\0\0*\0\0\0<\0\0\0=\0\0\0>\0\0\0?\0\0\0[\0\0\0\\\0\0\0]\0\0\0^\0\0\0{\0\0\0|\0\0\0}\0\0\0~\0\0\0\xAB\0\0\0\xAC\0\0\0\xBB\0\0\0\xBC\0\0\0:\x0F\0\0>\x0F\0\0\x9B\x16\0\0\x9D\x16\0\09 \0\0; \0\0E \0\0G \0\0} \0\0\x7F \0\0\x8D \0\0\x8F \0\0@!\0\0A!\0\0\x01\"\0\0\x05\"\0\0\x08\"\0\0\x0E\"\0\0\x11\"\0\0\x12\"\0\0\x15\"\0\0\x17\"\0\0\x1A\"\0\0\x1E\"\0\0\x1F\"\0\0#\"\0\0$\"\0\0%\"\0\0&\"\0\0'\"\0\0+\"\0\x004\"\0\09\"\0\0:\"\0\0;\"\0\0M\"\0\0R\"\0\0V\"\0\0_\"\0\0a\"\0\0b\"\0\0c\"\0\0d\"\0\0l\"\0\0n\"\0\0\x8D\"\0\0\x8F\"\0\0\x93\"\0\0\x98\"\0\0\x99\"\0\0\xA2\"\0\0\xA4\"\0\0\xA6\"\0\0\xB9\"\0\0\xBE\"\0\0\xC0\"\0\0\xC9\"\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\0\0\n\xFF\0\0\x1C\xFF\0\0\x1D\xFF\0\0\x1E\xFF\0\0\x1F\xFF\0\0;\xFF\0\0<\xFF\0\0=\xFF\0\0>\xFF\0\0[\xFF\0\0\\\xFF\0\0]\xFF\0\0^\xFF\0\0_\xFF\0\0a\xFF\0\0b\xFF\0\0d\xFF\0\0\xDB\xD6\x01\0\xDC\xD6\x01\0\x15\xD7\x01\0\x16\xD7\x01\0O\xD7\x01\0P\xD7\x01\0\x89\xD7\x01\0\x8A\xD7\x01\0\xC3\xD7\x01\0\xC4\xD7\x01\0") }, 553u32)
});
}
#[clippy::msrv = "1.67"]
impl icu_provider::DataProvider<icu::properties::provider::BidiMirroredV1Marker> for $provider {
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::BidiMirroredV1Marker>, icu_provider::DataError> {
if req.locale.is_empty() {
Ok(icu_provider::DataResponse { payload: Some(icu_provider::DataPayload::from_static_ref(Self::SINGLETON_PROPS_BIDI_M_V1)), metadata: Default::default() })
} else {
Err(icu_provider::DataErrorKind::ExtraneousLocale.with_req(<icu::properties::provider::BidiMirroredV1Marker as icu_provider::KeyedDataMarker>::KEY, req))
}
}
}
};
}
/// Implement `IterableDataProvider<BidiMirroredV1Marker>` on the given struct using the data
/// hardcoded in this file. This allows the struct to be used with
/// `DatagenDriver` for this key.
#[doc(hidden)]
#[macro_export]
macro_rules! __impliterable_props_bidi_m_v1 {
($ provider : ty) => {
#[clippy::msrv = "1.67"]
impl icu_provider::datagen::IterableDataProvider<icu::properties::provider::BidiMirroredV1Marker> for $provider {
fn supported_locales(&self) -> Result<alloc::vec::Vec<icu_provider::DataLocale>, icu_provider::DataError> {
Ok([icu_provider::DataLocale::default()].into())
}
}
};
}