| 1 |
// @generated |
| 2 |
/// Implement `DataProvider<PropertyBinarySentenceTerminalV1>` 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 |
/// * 560B[^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_sentence_terminal_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_SENTENCE_TERMINAL_V1: &'static <icu::properties::provider::PropertyBinarySentenceTerminalV1 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\x89\x05\0\x8A\x05\0\x1D\x06\0 \x06\0\xD4\x06\0\xD5\x06\0\0\x07\0\x03\x07\0\xF9\x07\0\xFA\x07\x007\x08\08\x08\09\x08\0:\x08\0=\x08\0?\x08\0d\t\0f\t\0J\x10\0L\x10\0b\x13\0c\x13\0g\x13\0i\x13\0n\x16\0o\x16\x005\x17\x007\x17\0\xD4\x17\0\xD6\x17\0\x03\x18\0\x04\x18\0\t\x18\0\n\x18\0D\x19\0F\x19\0\xA8\x1A\0\xAC\x1A\0N\x1B\0P\x1B\0Z\x1B\0\\\x1B\0^\x1B\0`\x1B\0}\x1B\0\x80\x1B\0;\x1C\0=\x1C\0~\x1C\0\x80\x1C\0$ \0% \0< \0> \0G \0J \0\xF9,\0\xFC,\0..\0/.\0<.\0=.\0S.\0U.\0\x020\0\x030\0\xFF\xA4\0\0\xA5\0\x0E\xA6\0\x10\xA6\0\xF3\xA6\0\xF4\xA6\0\xF7\xA6\0\xF8\xA6\0v\xA8\0x\xA8\0\xCE\xA8\0\xD0\xA8\0/\xA9\x000\xA9\0\xC8\xA9\0\xCA\xA9\0]\xAA\0`\xAA\0\xF0\xAA\0\xF2\xAA\0\xEB\xAB\0\xEC\xAB\0\x12\xFE\0\x13\xFE\0\x15\xFE\0\x17\xFE\0R\xFE\0S\xFE\0V\xFE\0X\xFE\0\x01\xFF\0\x02\xFF\0\x0E\xFF\0\x0F\xFF\0\x1F\xFF\0 \xFF\0a\xFF\0b\xFF\0V\n\x01X\n\x01U\x0F\x01Z\x0F\x01\x86\x0F\x01\x8A\x0F\x01G\x10\x01I\x10\x01\xBE\x10\x01\xC2\x10\x01A\x11\x01D\x11\x01\xC5\x11\x01\xC7\x11\x01\xCD\x11\x01\xCE\x11\x01\xDE\x11\x01\xE0\x11\x018\x12\x01:\x12\x01;\x12\x01=\x12\x01\xA9\x12\x01\xAA\x12\x01\xD4\x13\x01\xD6\x13\x01K\x14\x01M\x14\x01\xC2\x15\x01\xC4\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\x01A\x1C\x01C\x1C\x01\xF7\x1E\x01\xF9\x1E\x01C\x1F\x01E\x1F\x01nj\x01pj\x01\xF5j\x01\xF6j\x017k\x019k\x01Dk\x01Ek\x01nm\x01pm\x01\x98n\x01\x99n\x01\x9F\xBC\x01\xA0\xBC\x01\x88\xDA\x01\x89\xDA\x01") }, 170u32) |
| 27 |
}); |
| 28 |
} |
| 29 |
#[clippy::msrv = "1.83"] |
| 30 |
impl icu_provider::DataProvider<icu::properties::provider::PropertyBinarySentenceTerminalV1> for $provider { |
| 31 |
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::PropertyBinarySentenceTerminalV1>, 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_SENTENCE_TERMINAL_V1), metadata: icu_provider::DataResponseMetadata::default() }) |
| 34 |
} else { |
| 35 |
Err(icu_provider::DataErrorKind::InvalidRequest.with_req(<icu::properties::provider::PropertyBinarySentenceTerminalV1 as icu_provider::DataMarker>::INFO, req)) |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
}; |
| 40 |
($ provider : ty , ITER) => { |
| 41 |
__impl_property_binary_sentence_terminal_v1!($provider); |
| 42 |
#[clippy::msrv = "1.83"] |
| 43 |
impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyBinarySentenceTerminalV1> 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_sentence_terminal_v1!($provider); |
| 51 |
#[clippy::msrv = "1.83"] |
| 52 |
impl icu_provider::DryDataProvider<icu::properties::provider::PropertyBinarySentenceTerminalV1> 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::PropertyBinarySentenceTerminalV1 as icu_provider::DataMarker>::INFO, req)) |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
}; |
| 62 |
($ provider : ty , DRY , ITER) => { |
| 63 |
__impl_property_binary_sentence_terminal_v1!($provider); |
| 64 |
#[clippy::msrv = "1.83"] |
| 65 |
impl icu_provider::DryDataProvider<icu::properties::provider::PropertyBinarySentenceTerminalV1> 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::PropertyBinarySentenceTerminalV1 as icu_provider::DataMarker>::INFO, req)) |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
#[clippy::msrv = "1.83"] |
| 75 |
impl icu_provider::IterableDataProvider<icu::properties::provider::PropertyBinarySentenceTerminalV1> 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_sentence_terminal_v1 as impl_property_binary_sentence_terminal_v1; |