| 1 |
// @generated |
| 2 |
/// Implement `DataProvider<PropertyBinaryTerminalPunctuationV1>` 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 |
/// * 728B[^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_terminal_punctuation_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_TERMINAL_PUNCTUATION_V1: &'static <icu::properties::provider::PropertyBinaryTerminalPunctuationV1 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"!\0\0\"\0\0,\0\0-\0\0.\0\0/\0\0:\0\0<\0\0?\0\0@\0\0~\x03\0\x7F\x03\0\x87\x03\0\x88\x03\0\x89\x05\0\x8A\x05\0\xC3\x05\0\xC4\x05\0\x0C\x06\0\r\x06\0\x1B\x06\0\x1C\x06\0\x1D\x06\0 \x06\0\xD4\x06\0\xD5\x06\0\0\x07\0\x0B\x07\0\x0C\x07\0\r\x07\0\xF8\x07\0\xFA\x07\x000\x08\x006\x08\x007\x08\0?\x08\0^\x08\0_\x08\0d\t\0f\t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D\x11\x01\xCE\x11\x01\xDE\x11\x01\xE0\x11\x018\x12\x01=\x12\x01\xA9\x12\x01\xAA\x12\x01\xD4\x13\x01\xD6\x13\x01K\x14\x01N\x14\x01Z\x14\x01\\\x14\x01\xC2\x15\x01\xC6\x15\x01\xC9\x15\x01\xD8\x15\x01A\x16\x01C\x16\x01<\x17\x01?\x17\x01D\x19\x01E\x19\x01F\x19\x01G\x19\x01B\x1A\x01D\x1A\x01\x9B\x1A\x01\x9D\x1A\x01\xA1\x1A\x01\xA3\x1A\x01A\x1C\x01D\x1C\x01q\x1C\x01r\x1C\x01\xF7\x1E\x01\xF9\x1E\x01C\x1F\x01E\x1F\x01p$\x01u$\x01nj\x01pj\x01\xF5j\x01\xF6j\x017k\x01:k\x01Dk\x01Ek\x01nm\x01pm\x01\x97n\x01\x99n\x01\x9F\xBC\x01\xA0\xBC\x01\x87\xDA\x01\x8B\xDA\x01") }, 291u32) |
| 27 |
}); |
| 28 |
} |
| 29 |
#[clippy::msrv = "1.83"] |
| 30 |
impl icu_provider::DataProvider<icu::properties::provider::PropertyBinaryTerminalPunctuationV1> for $provider { |
| 31 |
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::PropertyBinaryTerminalPunctuationV1>, 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_TERMINAL_PUNCTUATION_V1), metadata: icu_provider::DataResponseMetadata::default() }) |
| 34 |
} else { |
| 35 |
Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyBinaryTerminalPunctuationV1 as icu_provider::DataMarker>::INFO, req)) |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
}; |
| 40 |
($ provider : ty , ITER) => { |
| 41 |
__impl_property_binary_terminal_punctuation_v1!($provider); |
| 42 |
#[clippy::msrv = "1.83"] |
| 43 |
impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyBinaryTerminalPunctuationV1> 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_terminal_punctuation_v1!($provider); |
| 51 |
#[clippy::msrv = "1.83"] |
| 52 |
impl icu_provider::DryDataProvider<icu::properties::provider::PropertyBinaryTerminalPunctuationV1> 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::PropertyBinaryTerminalPunctuationV1 as icu_provider::DataMarker>::INFO, req)) |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
}; |
| 62 |
($ provider : ty , DRY , ITER) => { |
| 63 |
__impl_property_binary_terminal_punctuation_v1!($provider); |
| 64 |
#[clippy::msrv = "1.83"] |
| 65 |
impl icu_provider::DryDataProvider<icu::properties::provider::PropertyBinaryTerminalPunctuationV1> 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::PropertyBinaryTerminalPunctuationV1 as icu_provider::DataMarker>::INFO, req)) |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
#[clippy::msrv = "1.83"] |
| 75 |
impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyBinaryTerminalPunctuationV1> 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_terminal_punctuation_v1 as impl_property_binary_terminal_punctuation_v1; |