| 1 |
// @generated |
| 2 |
/// Implement `DataProvider<PropertyBinaryFullCompositionExclusionV1>` 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 |
/// * 470B[^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_binary_full_composition_exclusion_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_BINARY_FULL_COMPOSITION_EXCLUSION_V1: &'static <icu::properties::provider::PropertyBinaryFullCompositionExclusionV1 as icu_provider::DynamicDataMarker>::DataStruct = &icu::properties::provider::PropertyCodePointSet::InversionList(unsafe { |
| 25 |
#[allow(unused_unsafe)] |
| 26 |
icu::collections::codepointinvlist::CodePointInversionList::from_parts_unchecked(unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"@\x03\0B\x03\0C\x03\0E\x03\0t\x03\0u\x03\0~\x03\0\x7F\x03\0\x87\x03\0\x88\x03\0X\t\0`\t\0\xDC\t\0\xDE\t\0\xDF\t\0\xE0\t\x003\n\x004\n\x006\n\x007\n\0Y\n\0\\\n\0^\n\0_\n\0\\\x0B\0^\x0B\0C\x0F\0D\x0F\0M\x0F\0N\x0F\0R\x0F\0S\x0F\0W\x0F\0X\x0F\0\\\x0F\0]\x0F\0i\x0F\0j\x0F\0s\x0F\0t\x0F\0u\x0F\0w\x0F\0x\x0F\0y\x0F\0\x81\x0F\0\x82\x0F\0\x93\x0F\0\x94\x0F\0\x9D\x0F\0\x9E\x0F\0\xA2\x0F\0\xA3\x0F\0\xA7\x0F\0\xA8\x0F\0\xAC\x0F\0\xAD\x0F\0\xB9\x0F\0\xBA\x0F\0q\x1F\0r\x1F\0s\x1F\0t\x1F\0u\x1F\0v\x1F\0w\x1F\0x\x1F\0y\x1F\0z\x1F\0{\x1F\0|\x1F\0}\x1F\0~\x1F\0\xBB\x1F\0\xBC\x1F\0\xBE\x1F\0\xBF\x1F\0\xC9\x1F\0\xCA\x1F\0\xCB\x1F\0\xCC\x1F\0\xD3\x1F\0\xD4\x1F\0\xDB\x1F\0\xDC\x1F\0\xE3\x1F\0\xE4\x1F\0\xEB\x1F\0\xEC\x1F\0\xEE\x1F\0\xF0\x1F\0\xF9\x1F\0\xFA\x1F\0\xFB\x1F\0\xFC\x1F\0\xFD\x1F\0\xFE\x1F\0\0 \0\x02 \0&!\0'!\0*!\0,!\0)#\0+#\0\xDC*\0\xDD*\0\0\xF9\0\x0E\xFA\0\x10\xFA\0\x11\xFA\0\x12\xFA\0\x13\xFA\0\x15\xFA\0\x1F\xFA\0 \xFA\0!\xFA\0\"\xFA\0#\xFA\0%\xFA\0'\xFA\0*\xFA\0n\xFA\0p\xFA\0\xDA\xFA\0\x1D\xFB\0\x1E\xFB\0\x1F\xFB\0 \xFB\0*\xFB\x007\xFB\08\xFB\0=\xFB\0>\xFB\0?\xFB\0@\xFB\0B\xFB\0C\xFB\0E\xFB\0F\xFB\0O\xFB\0^\xD1\x01e\xD1\x01\xBB\xD1\x01\xC1\xD1\x01\0\xF8\x02\x1E\xFA\x02") }, 1120u32) |
| 27 |
}); |
| 28 |
} |
| 29 |
#[clippy::msrv = "1.83"] |
| 30 |
impl icu_provider::DataProvider<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1> for $provider { |
| 31 |
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1>, icu_provider::DataError> { |
| 32 |
if req.id.locale.is_unknown() { |
| 33 |
Ok(icu_provider::DataResponse { payload: icu_provider::DataPayload::from_static_ref(Self::SINGLETON_PROPERTY_BINARY_FULL_COMPOSITION_EXCLUSION_V1), metadata: icu_provider::DataResponseMetadata::default() }) |
| 34 |
} else { |
| 35 |
Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1 as icu_provider::DataMarker>::INFO, req)) |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
}; |
| 40 |
($ provider : ty , ITER) => { |
| 41 |
__impl_property_binary_full_composition_exclusion_v1!($provider); |
| 42 |
#[clippy::msrv = "1.83"] |
| 43 |
impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1> for $provider { |
| 44 |
fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> { |
| 45 |
Ok([Default::default()].into_iter().collect()) |
| 46 |
} |
| 47 |
} |
| 48 |
}; |
| 49 |
($ provider : ty , DRY) => { |
| 50 |
__impl_property_binary_full_composition_exclusion_v1!($provider); |
| 51 |
#[clippy::msrv = "1.83"] |
| 52 |
impl icu_provider::DryDataProvider<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1> for $provider { |
| 53 |
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> { |
| 54 |
if req.id.locale.is_unknown() { |
| 55 |
Ok(icu_provider::DataResponseMetadata::default()) |
| 56 |
} else { |
| 57 |
Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1 as icu_provider::DataMarker>::INFO, req)) |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
}; |
| 62 |
($ provider : ty , DRY , ITER) => { |
| 63 |
__impl_property_binary_full_composition_exclusion_v1!($provider); |
| 64 |
#[clippy::msrv = "1.83"] |
| 65 |
impl icu_provider::DryDataProvider<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1> for $provider { |
| 66 |
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> { |
| 67 |
if req.id.locale.is_unknown() { |
| 68 |
Ok(icu_provider::DataResponseMetadata::default()) |
| 69 |
} else { |
| 70 |
Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1 as icu_provider::DataMarker>::INFO, req)) |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
#[clippy::msrv = "1.83"] |
| 75 |
impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyBinaryFullCompositionExclusionV1> for $provider { |
| 76 |
fn iter_ids(&self) -> Result<std::collections::BtreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> { |
| 77 |
Ok([Default::default()].into_iter().collect()) |
| 78 |
} |
| 79 |
} |
| 80 |
}; |
| 81 |
} |
| 82 |
#[doc(inline)] |
| 83 |
pub use __impl_property_binary_full_composition_exclusion_v1 as impl_property_binary_full_composition_exclusion_v1; |