diff --git a/components/locid/src/extensions/mod.rs b/components/locid/src/extensions/mod.rs index aecf6f7460b..773afb57ff3 100644 --- a/components/locid/src/extensions/mod.rs +++ b/components/locid/src/extensions/mod.rs @@ -73,7 +73,7 @@ pub enum ExtensionType { } impl ExtensionType { - pub(crate) fn from_byte(key: u8) -> Result { + pub(crate) const fn from_byte(key: u8) -> Result { let key = key.to_ascii_lowercase(); match key { b'u' => Ok(Self::Unicode), @@ -83,6 +83,18 @@ impl ExtensionType { _ => Err(ParserError::InvalidExtension), } } + + pub(crate) const fn from_bytes_manual_slice( + bytes: &[u8], + start: usize, + end: usize, + ) -> Result { + if end - start != 1 { + return Err(ParserError::InvalidExtension); + } + #[allow(clippy::indexing_slicing)] + Self::from_byte(bytes[start]) + } } /// A map of extensions associated with a given [`Locale`](crate::Locale). @@ -121,6 +133,18 @@ impl Extensions { } } + /// Function to create a new map of extensions containing exactly one unicode extension, callable in `const` + /// context. + #[inline] + pub const fn from_unicode(unicode: Unicode) -> Self { + Self { + unicode, + transform: Transform::new(), + private: Private::new(), + other: Vec::new(), + } + } + /// Returns whether there are no extensions present. /// /// # Examples diff --git a/components/locid/src/extensions/unicode/attribute.rs b/components/locid/src/extensions/unicode/attribute.rs index ff740225e06..51d64f758f6 100644 --- a/components/locid/src/extensions/unicode/attribute.rs +++ b/components/locid/src/extensions/unicode/attribute.rs @@ -44,17 +44,25 @@ impl Attribute { /// /// Notice: No attribute subtags are defined by the current CLDR specification. pub fn from_bytes(v: &[u8]) -> Result { - if !ATTR_LENGTH.contains(&v.len()) { - return Err(ParserError::InvalidExtension); - } - - let s = TinyAsciiStr::from_bytes(v).map_err(|_| ParserError::InvalidExtension)?; + Self::from_bytes_manual_slice(v, 0, v.len()) + } - if !s.is_ascii_alphanumeric() { + /// Equivalent to [`from_bytes(bytes[start..end])`](Self::from_bytes) but callable in `const` + /// context. + pub const fn from_bytes_manual_slice( + bytes: &[u8], + start: usize, + end: usize, + ) -> Result { + let slice_len = end - start; + if slice_len < *ATTR_LENGTH.start() || slice_len > *ATTR_LENGTH.end() { return Err(ParserError::InvalidExtension); } - Ok(Self(s.to_ascii_lowercase())) + match TinyAsciiStr::from_bytes_manual_slice(bytes, start, end) { + Ok(s) if s.is_ascii_alphanumeric() => Ok(Self(s.to_ascii_lowercase())), + _ => Err(ParserError::InvalidExtension), + } } /// A helper function for displaying diff --git a/components/locid/src/extensions/unicode/key.rs b/components/locid/src/extensions/unicode/key.rs index 0b116631db6..f3f016b2ddb 100644 --- a/components/locid/src/extensions/unicode/key.rs +++ b/components/locid/src/extensions/unicode/key.rs @@ -41,15 +41,25 @@ impl Key { /// assert_eq!(key.as_str(), "ca"); /// ``` pub const fn from_bytes(key: &[u8]) -> Result { + Self::from_bytes_manual_slice(key, 0, key.len()) + } + + /// Equivalent to [`from_bytes(bytes[start..end])`](Self::from_bytes) but callable in `const` + /// context. + pub const fn from_bytes_manual_slice( + bytes: &[u8], + start: usize, + end: usize, + ) -> Result { #[allow(clippy::indexing_slicing)] // TODO(#1668) Clippy exceptions need docs or fixing. - if key.len() != KEY_LENGTH - || !key[0].is_ascii_alphanumeric() - || !key[1].is_ascii_alphabetic() + if end - start != KEY_LENGTH + || !bytes[start].is_ascii_alphanumeric() + || !bytes[start + 1].is_ascii_alphabetic() { return Err(ParserError::InvalidExtension); } - let key = match TinyAsciiStr::from_bytes(key) { + let key = match TinyAsciiStr::from_bytes_manual_slice(bytes, start, end) { Ok(k) => k, Err(_) => return Err(ParserError::InvalidSubtag), }; diff --git a/components/locid/src/extensions/unicode/keywords.rs b/components/locid/src/extensions/unicode/keywords.rs index ba384692641..5a23df9cc3e 100644 --- a/components/locid/src/extensions/unicode/keywords.rs +++ b/components/locid/src/extensions/unicode/keywords.rs @@ -80,6 +80,14 @@ impl Keywords { Self(LiteMap::new()) } + /// Create a new list of key-value pairs having exactly one pair, callable in a `const` context. + #[inline] + pub const fn new_single(key: Key, value: Value) -> Self { + Self(LiteMap::from_sorted_store_unchecked(ShortVec::new_single( + (key, value), + ))) + } + /// Returns `true` if there are no keywords. /// /// # Examples diff --git a/components/locid/src/extensions/unicode/value.rs b/components/locid/src/extensions/unicode/value.rs index f3786aa00f6..065c0453753 100644 --- a/components/locid/src/extensions/unicode/value.rs +++ b/components/locid/src/extensions/unicode/value.rs @@ -111,28 +111,28 @@ impl Value { #[doc(hidden)] pub const fn subtag_from_bytes(bytes: &[u8]) -> Result>, ParserError> { - if *VALUE_LENGTH.start() > bytes.len() || *VALUE_LENGTH.end() < bytes.len() { - return Err(ParserError::InvalidExtension); - }; - match TinyAsciiStr::from_bytes(bytes) { - Ok(TRUE_VALUE) => Ok(None), - Ok(val) if val.is_ascii_alphanumeric() => Ok(Some(val)), - _ => Err(ParserError::InvalidExtension), - } + Self::parse_subtag_from_bytes_manual_slice(bytes, 0, bytes.len()) } pub(crate) fn parse_subtag(t: &[u8]) -> Result>, ParserError> { - let s = TinyAsciiStr::from_bytes(t).map_err(|_| ParserError::InvalidSubtag)?; - if !VALUE_LENGTH.contains(&t.len()) || !s.is_ascii_alphanumeric() { + Self::parse_subtag_from_bytes_manual_slice(t, 0, t.len()) + } + + pub(crate) const fn parse_subtag_from_bytes_manual_slice( + bytes: &[u8], + start: usize, + end: usize, + ) -> Result>, ParserError> { + let slice_len = end - start; + if slice_len > *VALUE_LENGTH.end() || slice_len < *VALUE_LENGTH.start() { return Err(ParserError::InvalidExtension); } - let s = s.to_ascii_lowercase(); - - if s == TRUE_VALUE { - Ok(None) - } else { - Ok(Some(s)) + match TinyAsciiStr::from_bytes_manual_slice(bytes, start, end) { + Ok(TRUE_VALUE) => Ok(None), + Ok(s) if s.is_ascii_alphanumeric() => Ok(Some(s.to_ascii_lowercase())), + Ok(_) => Err(ParserError::InvalidExtension), + Err(_) => Err(ParserError::InvalidSubtag), } } diff --git a/components/locid/src/locale.rs b/components/locid/src/locale.rs index b49b9df8c8b..918d5d33d78 100644 --- a/components/locid/src/locale.rs +++ b/components/locid/src/locale.rs @@ -3,12 +3,17 @@ // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). use crate::ordering::SubtagOrderingResult; -use crate::parser::{get_subtag_iterator, parse_locale, ParserError}; +use crate::parser::{ + get_subtag_iterator, parse_locale, + parse_locale_with_single_variant_single_keyword_unicode_keyword_extension, ParserError, + ParserMode, +}; use crate::{extensions, subtags, LanguageIdentifier}; use alloc::string::String; use alloc::string::ToString; use core::cmp::Ordering; use core::str::FromStr; +use tinystr::TinyAsciiStr; /// A core struct representing a [`Unicode Locale Identifier`]. /// @@ -310,6 +315,26 @@ impl Locale { iter.next() == None } + #[doc(hidden)] + #[allow(clippy::type_complexity)] + pub const fn from_bytes_with_single_variant_single_keyword_unicode_extension( + v: &[u8], + ) -> Result< + ( + subtags::Language, + Option, + Option, + Option, + Option<(extensions::unicode::Key, Option>)>, + ), + ParserError, + > { + parse_locale_with_single_variant_single_keyword_unicode_keyword_extension( + v, + ParserMode::Locale, + ) + } + pub(crate) fn for_each_subtag_str(&self, f: &mut F) -> Result<(), E> where F: FnMut(&str) -> Result<(), E>, diff --git a/components/locid/src/macros.rs b/components/locid/src/macros.rs index 3d48b23edc6..11c7bc2b4cf 100644 --- a/components/locid/src/macros.rs +++ b/components/locid/src/macros.rs @@ -191,25 +191,54 @@ macro_rules! langid { /// assert_eq!(DE_AT, de_at); /// ``` /// -/// *Note*: The macro cannot produce locales with more than one variant or extensions due to const +/// *Note*: The macro cannot produce locales with more than one variant or multiple extensions +/// (only single keyword unicode extension is supported) due to const /// limitations (see [`Heap Allocations in Constants`]): /// /// ```compile_fail -/// icu::locid::locale!("en-US-u-ca-ja"); +/// icu::locid::locale!("sl-IT-rozaj-biske-1994") /// ``` /// Use runtime parsing instead: /// ``` -/// "en-US-u-ca-ja".parse::().unwrap(); +/// "sl-IT-rozaj-biske-1994".parse::().unwrap(); /// ``` /// +/// Locales with multiple keys are not supported +/// ```compile_fail +/// icu::locid::locale!("th-TH-u-ca-buddhist-nu-thai"); +/// ``` +/// Use runtime parsing instead: +/// ``` +/// "th-TH-u-ca-buddhist-nu-thai".parse::().unwrap(); +/// ``` +/// +/// Locales with attributes are not supported +/// ```compile_fail +/// icu::locid::locale!("en-US-u-foobar-ca-buddhist"); +/// ``` +/// Use runtime parsing instead: +/// ``` +/// "en-US-u-foobar-ca-buddhist".parse::().unwrap(); +/// ``` +/// +/// Locales with single key but multiple types are not supported +/// ```compile_fail +/// icu::locid::locale!("en-US-u-ca-islamic-umalqura"); +/// ``` +/// Use runtime parsing instead: +/// ``` +/// "en-US-u-ca-islamic-umalqura".parse::().unwrap(); +/// ``` /// [`Locale`]: crate::Locale /// [`Heap Allocations in Constants`]: https://github.com/rust-lang/const-eval/issues/20 #[macro_export] macro_rules! locale { ($locale:literal) => {{ const R: $crate::Locale = - match $crate::LanguageIdentifier::from_bytes_with_single_variant($locale.as_bytes()) { - Ok((language, script, region, variant)) => $crate::Locale { + match $crate::Locale::from_bytes_with_single_variant_single_keyword_unicode_extension( + $locale.as_bytes(), + ) { + Ok((language, script, region, variant, keyword)) => $crate::Locale { id: $crate::LanguageIdentifier { language, script, @@ -219,7 +248,19 @@ macro_rules! locale { None => $crate::subtags::Variants::new(), }, }, - extensions: $crate::extensions::Extensions::new(), + extensions: match keyword { + Some(k) => $crate::extensions::Extensions::from_unicode( + $crate::extensions::Unicode { + keywords: $crate::extensions::unicode::Keywords::new_single( + k.0, + $crate::extensions::unicode::Value::from_tinystr(k.1), + ), + + attributes: $crate::extensions::unicode::Attributes::new(), + }, + ), + None => $crate::extensions::Extensions::new(), + }, }, #[allow(clippy::panic)] // const context _ => panic!(concat!( @@ -368,4 +409,11 @@ mod test { let de_at_foobar: Locale = "de_at-foobar".parse().unwrap(); assert_eq!(DE_AT_FOOBAR, de_at_foobar); } + + #[test] + fn test_locale_macro_can_parse_locale_with_single_keyword_unicode_extension() { + const DE_AT_U_CA_FOOBAR: Locale = locale!("de_at-u-ca-foobar"); + let de_at_u_ca_foobar: Locale = "de_at-u-ca-foobar".parse().unwrap(); + assert_eq!(DE_AT_U_CA_FOOBAR, de_at_u_ca_foobar); + } } diff --git a/components/locid/src/parser/langid.rs b/components/locid/src/parser/langid.rs index b7b04760250..7fb6699b652 100644 --- a/components/locid/src/parser/langid.rs +++ b/components/locid/src/parser/langid.rs @@ -3,10 +3,13 @@ // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). pub use super::errors::ParserError; +use crate::extensions::unicode::{Attribute, Key, Value}; +use crate::extensions::ExtensionType; use crate::parser::{get_subtag_iterator, SubtagIterator}; -use crate::subtags; use crate::LanguageIdentifier; +use crate::{extensions, subtags}; use alloc::vec::Vec; +use tinystr::TinyAsciiStr; #[derive(PartialEq, Clone, Copy)] pub enum ParserMode { @@ -105,7 +108,7 @@ pub fn parse_language_identifier( } #[allow(clippy::type_complexity)] -pub const fn parse_language_identifier_with_single_variant_from_iter( +pub const fn parse_locale_with_single_variant_single_keyword_unicode_extension_from_iter( mut iter: SubtagIterator, mode: ParserMode, ) -> Result< @@ -114,6 +117,7 @@ pub const fn parse_language_identifier_with_single_variant_from_iter( Option, Option, Option, + Option<(extensions::unicode::Key, Option>)>, ), ParserError, > { @@ -121,6 +125,7 @@ pub const fn parse_language_identifier_with_single_variant_from_iter( let mut script = None; let mut region = None; let mut variant = None; + let mut keyword = None; if let (i, Some((t, start, end))) = iter.next_manual() { iter = i; @@ -135,7 +140,7 @@ pub const fn parse_language_identifier_with_single_variant_from_iter( let mut position = ParserPosition::Script; while let Some((t, start, end)) = iter.peek_manual() { - if !matches!(mode, ParserMode::LanguageIdentifier) && start - end == 1 { + if !matches!(mode, ParserMode::LanguageIdentifier) && end - start == 1 { break; } @@ -186,7 +191,61 @@ pub const fn parse_language_identifier_with_single_variant_from_iter( iter = iter.next_manual().0; } - Ok((language, script, region, variant)) + if matches!(mode, ParserMode::Locale) { + if let Some((bytes, start, end)) = iter.peek_manual() { + match ExtensionType::from_bytes_manual_slice(bytes, start, end) { + Ok(ExtensionType::Unicode) => { + iter = iter.next_manual().0; + if let Some((bytes, start, end)) = iter.peek_manual() { + if Attribute::from_bytes_manual_slice(bytes, start, end).is_ok() { + // We cannot handle Attributes in a const context + return Err(ParserError::InvalidSubtag); + } + } + + let mut key = None; + let mut current_type = None; + + while let Some((bytes, start, end)) = iter.peek_manual() { + let slen = end - start; + if slen == 2 { + if key.is_some() { + // We cannot handle more than one Key in a const context + return Err(ParserError::InvalidSubtag); + } + match Key::from_bytes_manual_slice(bytes, start, end) { + Ok(k) => key = Some(k), + Err(e) => return Err(e), + }; + } else if key.is_some() { + match Value::parse_subtag_from_bytes_manual_slice(bytes, start, end) { + Ok(Some(t)) => { + if current_type.is_some() { + // We cannot handle more than one type in a const context + return Err(ParserError::InvalidSubtag); + } + current_type = Some(t); + } + Ok(None) => {} + Err(e) => return Err(e), + } + } else { + break; + } + iter = iter.next_manual().0 + } + if let Some(k) = key { + keyword = Some((k, current_type)); + } + } + // We cannot handle Transform, Private, Other extensions in a const context + Ok(_) => return Err(ParserError::InvalidSubtag), + Err(e) => return Err(e), + } + } + } + + Ok((language, script, region, variant, keyword)) } #[allow(clippy::type_complexity)] @@ -203,5 +262,8 @@ pub const fn parse_language_identifier_with_single_variant( ParserError, > { let iter = get_subtag_iterator(t); - parse_language_identifier_with_single_variant_from_iter(iter, mode) + match parse_locale_with_single_variant_single_keyword_unicode_extension_from_iter(iter, mode) { + Ok((l, s, r, v, _)) => Ok((l, s, r, v)), + Err(e) => Err(e), + } } diff --git a/components/locid/src/parser/locale.rs b/components/locid/src/parser/locale.rs index ad037c57934..805b6c29091 100644 --- a/components/locid/src/parser/locale.rs +++ b/components/locid/src/parser/locale.rs @@ -2,10 +2,14 @@ // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). -use crate::extensions::Extensions; +use tinystr::TinyAsciiStr; + +use crate::extensions::{self, Extensions}; use crate::parser::errors::ParserError; use crate::parser::{get_subtag_iterator, parse_language_identifier_from_iter, ParserMode}; -use crate::Locale; +use crate::{subtags, Locale}; + +use super::parse_locale_with_single_variant_single_keyword_unicode_extension_from_iter; pub fn parse_locale(t: &[u8]) -> Result { let mut iter = get_subtag_iterator(t); @@ -18,3 +22,21 @@ pub fn parse_locale(t: &[u8]) -> Result { }; Ok(Locale { id, extensions }) } + +#[allow(clippy::type_complexity)] +pub const fn parse_locale_with_single_variant_single_keyword_unicode_keyword_extension( + t: &[u8], + mode: ParserMode, +) -> Result< + ( + subtags::Language, + Option, + Option, + Option, + Option<(extensions::unicode::Key, Option>)>, + ), + ParserError, +> { + let iter = get_subtag_iterator(t); + parse_locale_with_single_variant_single_keyword_unicode_extension_from_iter(iter, mode) +} diff --git a/components/locid/src/parser/mod.rs b/components/locid/src/parser/mod.rs index b358f47b03c..fef10b0abc3 100644 --- a/components/locid/src/parser/mod.rs +++ b/components/locid/src/parser/mod.rs @@ -9,9 +9,13 @@ mod locale; pub use errors::ParserError; pub use langid::{ parse_language_identifier, parse_language_identifier_from_iter, - parse_language_identifier_with_single_variant, ParserMode, + parse_language_identifier_with_single_variant, + parse_locale_with_single_variant_single_keyword_unicode_extension_from_iter, ParserMode, +}; + +pub use locale::{ + parse_locale, parse_locale_with_single_variant_single_keyword_unicode_keyword_extension, }; -pub use locale::parse_locale; pub const fn get_subtag_iterator(slice: &[u8]) -> SubtagIterator { let mut current_start = 0; diff --git a/provider/datagen/src/databake.rs b/provider/datagen/src/databake.rs index 6968b52556d..a6bdceb7ce9 100644 --- a/provider/datagen/src/databake.rs +++ b/provider/datagen/src/databake.rs @@ -236,7 +236,7 @@ impl DataExporter for BakedDataExporter { type DataStruct = #struct_type; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[#(#data),*]); + litemap::LiteMap::from_sorted_store_unchecked(&[#(#data),*]); #(#statics)* }, diff --git a/provider/testdata/data/baked/calendar/japanese_v1.rs b/provider/testdata/data/baked/calendar/japanese_v1.rs index ec8bb9aeb9f..9773c08870e 100644 --- a/provider/testdata/data/baked/calendar/japanese_v1.rs +++ b/provider/testdata/data/baked/calendar/japanese_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_calendar::provider::JapaneseErasV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_calendar::provider::JapaneseErasV1 { dates_to_eras: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/calendar/japanext_v1.rs b/provider/testdata/data/baked/calendar/japanext_v1.rs index 0f1a99d6092..2097ba4a1b7 100644 --- a/provider/testdata/data/baked/calendar/japanext_v1.rs +++ b/provider/testdata/data/baked/calendar/japanext_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_calendar :: provider :: JapaneseExtendedErasV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_calendar::provider::JapaneseErasV1 { dates_to_eras: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/collator/data_v1.rs b/provider/testdata/data/baked/collator/data_v1.rs index 3a34a63748d..84c425f6227 100644 --- a/provider/testdata/data/baked/collator/data_v1.rs +++ b/provider/testdata/data/baked/collator/data_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_collator::provider::CollationDataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("bn", BN), ("es", ES), ("ja", JA), diff --git a/provider/testdata/data/baked/collator/dia_v1.rs b/provider/testdata/data/baked/collator/dia_v1.rs index 5ad89d5dc67..4104c38208e 100644 --- a/provider/testdata/data/baked/collator/dia_v1.rs +++ b/provider/testdata/data/baked/collator/dia_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_collator::provider::CollationDiacriticsV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_collator::provider::CollationDiacriticsV1 { secondaries: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/collator/jamo_v1.rs b/provider/testdata/data/baked/collator/jamo_v1.rs index e222715b348..4756e6afd78 100644 --- a/provider/testdata/data/baked/collator/jamo_v1.rs +++ b/provider/testdata/data/baked/collator/jamo_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_collator::provider::CollationJamoV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_collator::provider::CollationJamoV1 { ce32s: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/collator/meta_v1.rs b/provider/testdata/data/baked/collator/meta_v1.rs index e0ac01361de..1e5aca8366a 100644 --- a/provider/testdata/data/baked/collator/meta_v1.rs +++ b/provider/testdata/data/baked/collator/meta_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_collator::provider::CollationMetadataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("bn", BN_JA), ("es", ES_TR), ("ja", BN_JA), diff --git a/provider/testdata/data/baked/collator/prim_v1.rs b/provider/testdata/data/baked/collator/prim_v1.rs index 84de8a0f452..d83d81c162a 100644 --- a/provider/testdata/data/baked/collator/prim_v1.rs +++ b/provider/testdata/data/baked/collator/prim_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_collator :: provider :: CollationSpecialPrimariesV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_collator::provider::CollationSpecialPrimariesV1 { last_primaries: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[6u8, 5u8, 0u8, 12u8, 137u8, 13u8, 0u8, 14u8]) diff --git a/provider/testdata/data/baked/collator/reord_v1.rs b/provider/testdata/data/baked/collator/reord_v1.rs index ae6cbc4ebbd..f5fafe2f52c 100644 --- a/provider/testdata/data/baked/collator/reord_v1.rs +++ b/provider/testdata/data/baked/collator/reord_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_collator::provider::CollationReorderingV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("bn", BN), ("ja", JA), ("th", TH)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("bn", BN), ("ja", JA), ("th", TH)]); static BN: &DataStruct = &::icu_collator::provider::CollationReorderingV1 { min_high_no_reorder: 1906311168u32, reorder_table: unsafe { diff --git a/provider/testdata/data/baked/core/helloworld_v1.rs b/provider/testdata/data/baked/core/helloworld_v1.rs index a6bede719b9..1d761ed66de 100644 --- a/provider/testdata/data/baked/core/helloworld_v1.rs +++ b/provider/testdata/data/baked/core/helloworld_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_provider::hello_world::HelloWorldV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("bn", BN), ("en", EN), ("ja", JA), diff --git a/provider/testdata/data/baked/datetime/buddhist/datelengths_v1.rs b/provider/testdata/data/baked/datetime/buddhist/datelengths_v1.rs index 29b2e0afb2b..2aa4f4f4882 100644 --- a/provider/testdata/data/baked/datetime/buddhist/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/buddhist/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: BuddhistDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/buddhist/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/buddhist/datesymbols_v1.rs index 87acbe27c99..32b45e70d2b 100644 --- a/provider/testdata/data/baked/datetime/buddhist/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/buddhist/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: BuddhistDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/coptic/datelengths_v1.rs b/provider/testdata/data/baked/datetime/coptic/datelengths_v1.rs index 5a5a1f6a71e..b7d0915413a 100644 --- a/provider/testdata/data/baked/datetime/coptic/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/coptic/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: CopticDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/coptic/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/coptic/datesymbols_v1.rs index 5076c957852..74fe41ec797 100644 --- a/provider/testdata/data/baked/datetime/coptic/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/coptic/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: CopticDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/ethiopic/datelengths_v1.rs b/provider/testdata/data/baked/datetime/ethiopic/datelengths_v1.rs index 4ae15de6ae9..510738b89ac 100644 --- a/provider/testdata/data/baked/datetime/ethiopic/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/ethiopic/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: EthiopicDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/ethiopic/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/ethiopic/datesymbols_v1.rs index 559a94ba7d7..b23cb3b990c 100644 --- a/provider/testdata/data/baked/datetime/ethiopic/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/ethiopic/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: EthiopicDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/gregory/datelengths_v1.rs b/provider/testdata/data/baked/datetime/gregory/datelengths_v1.rs index b19f988abdc..6d7e4dbf6e6 100644 --- a/provider/testdata/data/baked/datetime/gregory/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/gregory/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: GregorianDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/gregory/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/gregory/datesymbols_v1.rs index ba5988acba7..829a35e3466 100644 --- a/provider/testdata/data/baked/datetime/gregory/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/gregory/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: GregorianDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/indian/datelengths_v1.rs b/provider/testdata/data/baked/datetime/indian/datelengths_v1.rs index 95650879e79..75699bd04c1 100644 --- a/provider/testdata/data/baked/datetime/indian/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/indian/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: IndianDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/indian/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/indian/datesymbols_v1.rs index 0fd9bc2f2a1..4a72a67deb5 100644 --- a/provider/testdata/data/baked/datetime/indian/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/indian/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: IndianDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/japanese/datelengths_v1.rs b/provider/testdata/data/baked/datetime/japanese/datelengths_v1.rs index 8091288e92f..47ecf0a0271 100644 --- a/provider/testdata/data/baked/datetime/japanese/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/japanese/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: JapaneseDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/japanese/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/japanese/datesymbols_v1.rs index ad01bbe0e58..ffd2ec3f480 100644 --- a/provider/testdata/data/baked/datetime/japanese/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/japanese/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: JapaneseDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/japanext/datelengths_v1.rs b/provider/testdata/data/baked/datetime/japanext/datelengths_v1.rs index b26b206828d..217820e88a2 100644 --- a/provider/testdata/data/baked/datetime/japanext/datelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/japanext/datelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: JapaneseExtendedDateLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/datetime/japanext/datesymbols_v1.rs b/provider/testdata/data/baked/datetime/japanext/datesymbols_v1.rs index be4d4786438..5e42f13b274 100644 --- a/provider/testdata/data/baked/datetime/japanext/datesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/japanext/datesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: JapaneseExtendedDateSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/datetime/skeletons_v1_u_ca.rs b/provider/testdata/data/baked/datetime/skeletons_v1_u_ca.rs index da92b7931e7..56ccddd9f2d 100644 --- a/provider/testdata/data/baked/datetime/skeletons_v1_u_ca.rs +++ b/provider/testdata/data/baked/datetime/skeletons_v1_u_ca.rs @@ -4,7 +4,7 @@ type DataStruct = [( ::icu_datetime::pattern::runtime::PatternPlurals<'static>, )]; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar-EG-u-ca-buddhist", AR_EG_U_CA_BUDDHIST_AR_EG_U_CA_COPTIC), ("ar-EG-u-ca-coptic", AR_EG_U_CA_BUDDHIST_AR_EG_U_CA_COPTIC), ("ar-EG-u-ca-ethiopic", AR_EG_U_CA_BUDDHIST_AR_EG_U_CA_COPTIC), diff --git a/provider/testdata/data/baked/datetime/timelengths_v1.rs b/provider/testdata/data/baked/datetime/timelengths_v1.rs index 006251d2c46..a677fa0aa91 100644 --- a/provider/testdata/data/baked/datetime/timelengths_v1.rs +++ b/provider/testdata/data/baked/datetime/timelengths_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: TimeLengthsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG_BN_CCP_EN_EN_001_FIL), ("ar-EG", AR_AR_EG_BN_CCP_EN_EN_001_FIL), ("bn", AR_AR_EG_BN_CCP_EN_EN_001_FIL), diff --git a/provider/testdata/data/baked/datetime/timesymbols_v1.rs b/provider/testdata/data/baked/datetime/timesymbols_v1.rs index 65e533841e9..b54269c911b 100644 --- a/provider/testdata/data/baked/datetime/timesymbols_v1.rs +++ b/provider/testdata/data/baked/datetime/timesymbols_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: calendar :: TimeSymbolsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP_UND), diff --git a/provider/testdata/data/baked/datetime/week_data_v1_r.rs b/provider/testdata/data/baked/datetime/week_data_v1_r.rs index 077ebeee0e9..92bc7942731 100644 --- a/provider/testdata/data/baked/datetime/week_data_v1_r.rs +++ b/provider/testdata/data/baked/datetime/week_data_v1_r.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_datetime::provider::week_data::WeekDataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("und", UND_UND_AI_UND_AL_UND_AM_UND_AR_UND_AU), ("und-AD", UND_AD_UND_AN_UND_AT_UND_AX_UND_BE_UND_BG), ("und-AE", UND_AE_UND_AF_UND_BH_UND_DJ_UND_DZ_UND_EG), diff --git a/provider/testdata/data/baked/decimal/symbols_v1_u_nu.rs b/provider/testdata/data/baked/decimal/symbols_v1_u_nu.rs index 91f1f07dbd7..09415bcd090 100644 --- a/provider/testdata/data/baked/decimal/symbols_v1_u_nu.rs +++ b/provider/testdata/data/baked/decimal/symbols_v1_u_nu.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_decimal::provider::DecimalSymbolsV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("ar-EG-u-nu-latn", AR_EG_U_NU_LATN_AR_U_NU_LATN), diff --git a/provider/testdata/data/baked/fallback/likelysubtags_v1.rs b/provider/testdata/data/baked/fallback/likelysubtags_v1.rs index b5f72e39a7c..a40155878cb 100644 --- a/provider/testdata/data/baked/fallback/likelysubtags_v1.rs +++ b/provider/testdata/data/baked/fallback/likelysubtags_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_provider_adapters :: fallback :: provider :: LocaleFallbackLikelySubtagsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_provider_adapters::fallback::provider::LocaleFallbackLikelySubtagsV1 { l2s: unsafe { diff --git a/provider/testdata/data/baked/fallback/parents_v1.rs b/provider/testdata/data/baked/fallback/parents_v1.rs index e286ca27907..877d1b3cf26 100644 --- a/provider/testdata/data/baked/fallback/parents_v1.rs +++ b/provider/testdata/data/baked/fallback/parents_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_provider_adapters :: fallback :: provider :: LocaleFallbackParentsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_provider_adapters::fallback::provider::LocaleFallbackParentsV1 { parents: unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/list/and_v1.rs b/provider/testdata/data/baked/list/and_v1.rs index 04ba81203ee..4719977b478 100644 --- a/provider/testdata/data/baked/list/and_v1.rs +++ b/provider/testdata/data/baked/list/and_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = <::icu_list::provider::AndListV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/list/or_v1.rs b/provider/testdata/data/baked/list/or_v1.rs index 53d65a4cde2..c75c1a93f68 100644 --- a/provider/testdata/data/baked/list/or_v1.rs +++ b/provider/testdata/data/baked/list/or_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = <::icu_list::provider::OrListV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/list/unit_v1.rs b/provider/testdata/data/baked/list/unit_v1.rs index dacdb31601c..ef4115e6b86 100644 --- a/provider/testdata/data/baked/list/unit_v1.rs +++ b/provider/testdata/data/baked/list/unit_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = <::icu_list::provider::UnitListV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP_UND), diff --git a/provider/testdata/data/baked/locid_transform/aliases_v1.rs b/provider/testdata/data/baked/locid_transform/aliases_v1.rs index dc48e96e3e4..f20077da08c 100644 --- a/provider/testdata/data/baked/locid_transform/aliases_v1.rs +++ b/provider/testdata/data/baked/locid_transform/aliases_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_locid_transform::provider::AliasesV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_locid_transform::provider::AliasesV1 { language_variants: unsafe { ::zerovec::VarZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/locid_transform/likelysubtags_v1.rs b/provider/testdata/data/baked/locid_transform/likelysubtags_v1.rs index 4951adf7f5e..48a0ad0db7b 100644 --- a/provider/testdata/data/baked/locid_transform/likelysubtags_v1.rs +++ b/provider/testdata/data/baked/locid_transform/likelysubtags_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_locid_transform :: provider :: LikelySubtagsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_locid_transform::provider::LikelySubtagsV1 { language_script: unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/normalizer/comp_v1.rs b/provider/testdata/data/baked/normalizer/comp_v1.rs index 9cfcba9bb0c..342a48c33e5 100644 --- a/provider/testdata/data/baked/normalizer/comp_v1.rs +++ b/provider/testdata/data/baked/normalizer/comp_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CanonicalCompositionsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::CanonicalCompositionsV1 { canonical_compositions: ::icu_collections::char16trie::Char16Trie { data: unsafe { diff --git a/provider/testdata/data/baked/normalizer/decomp_v1.rs b/provider/testdata/data/baked/normalizer/decomp_v1.rs index e019f599618..4ac249bbdc9 100644 --- a/provider/testdata/data/baked/normalizer/decomp_v1.rs +++ b/provider/testdata/data/baked/normalizer/decomp_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: NonRecursiveDecompositionSupplementV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::NonRecursiveDecompositionSupplementV1 { trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/normalizer/nfc_v1.rs b/provider/testdata/data/baked/normalizer/nfc_v1.rs index d2fd9b02f88..87f30115aa9 100644 --- a/provider/testdata/data/baked/normalizer/nfc_v1.rs +++ b/provider/testdata/data/baked/normalizer/nfc_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CanonicalCompositionPassthroughV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::CompositionPassthroughV1 { first: 768u32, trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/normalizer/nfd_v1.rs b/provider/testdata/data/baked/normalizer/nfd_v1.rs index f7fcbad1ea9..30d18ec5faf 100644 --- a/provider/testdata/data/baked/normalizer/nfd_v1.rs +++ b/provider/testdata/data/baked/normalizer/nfd_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CanonicalDecompositionDataV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::DecompositionDataV1 { trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/normalizer/nfdex_v1.rs b/provider/testdata/data/baked/normalizer/nfdex_v1.rs index 4343f0e28c6..22d087c8f20 100644 --- a/provider/testdata/data/baked/normalizer/nfdex_v1.rs +++ b/provider/testdata/data/baked/normalizer/nfdex_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CanonicalDecompositionTablesV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::DecompositionTablesV1 { scalars16: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/normalizer/nfkc_v1.rs b/provider/testdata/data/baked/normalizer/nfkc_v1.rs index 4d515d3471a..874c8551db6 100644 --- a/provider/testdata/data/baked/normalizer/nfkc_v1.rs +++ b/provider/testdata/data/baked/normalizer/nfkc_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CompatibilityCompositionPassthroughV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::CompositionPassthroughV1 { first: 160u32, trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/normalizer/nfkd_v1.rs b/provider/testdata/data/baked/normalizer/nfkd_v1.rs index 55762e16adb..ae71b42ca05 100644 --- a/provider/testdata/data/baked/normalizer/nfkd_v1.rs +++ b/provider/testdata/data/baked/normalizer/nfkd_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CompatibilityDecompositionSupplementV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::DecompositionSupplementV1 { trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/normalizer/nfkdex_v1.rs b/provider/testdata/data/baked/normalizer/nfkdex_v1.rs index 553bc26aa33..db1f0ed72fe 100644 --- a/provider/testdata/data/baked/normalizer/nfkdex_v1.rs +++ b/provider/testdata/data/baked/normalizer/nfkdex_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: CompatibilityDecompositionTablesV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::DecompositionTablesV1 { scalars16: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/normalizer/uts46_v1.rs b/provider/testdata/data/baked/normalizer/uts46_v1.rs index da3ec364ecf..c012cad0eee 100644 --- a/provider/testdata/data/baked/normalizer/uts46_v1.rs +++ b/provider/testdata/data/baked/normalizer/uts46_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: Uts46CompositionPassthroughV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::CompositionPassthroughV1 { first: 65u32, trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/normalizer/uts46d_v1.rs b/provider/testdata/data/baked/normalizer/uts46d_v1.rs index 5c3964ebf78..a77ac5f09b4 100644 --- a/provider/testdata/data/baked/normalizer/uts46d_v1.rs +++ b/provider/testdata/data/baked/normalizer/uts46d_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_normalizer :: provider :: Uts46DecompositionSupplementV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_normalizer::provider::DecompositionSupplementV1 { trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/plurals/cardinal_v1.rs b/provider/testdata/data/baked/plurals/cardinal_v1.rs index df4923dca28..97be7de8aec 100644 --- a/provider/testdata/data/baked/plurals/cardinal_v1.rs +++ b/provider/testdata/data/baked/plurals/cardinal_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_plurals::provider::CardinalV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR), ("bn", BN), ("en", EN), diff --git a/provider/testdata/data/baked/plurals/ordinal_v1.rs b/provider/testdata/data/baked/plurals/ordinal_v1.rs index 7c4a91527d7..0fa51138c7f 100644 --- a/provider/testdata/data/baked/plurals/ordinal_v1.rs +++ b/provider/testdata/data/baked/plurals/ordinal_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_plurals::provider::OrdinalV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_ES_JA_RU_SR_TH_TR_UND), ("bn", BN), ("en", EN), diff --git a/provider/testdata/data/baked/props/ahex_v1.rs b/provider/testdata/data/baked/props/ahex_v1.rs index a73ac311ad0..73adf952451 100644 --- a/provider/testdata/data/baked/props/ahex_v1.rs +++ b/provider/testdata/data/baked/props/ahex_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::AsciiHexDigitV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/alpha_v1.rs b/provider/testdata/data/baked/props/alpha_v1.rs index a83e9b75285..83b325d7785 100644 --- a/provider/testdata/data/baked/props/alpha_v1.rs +++ b/provider/testdata/data/baked/props/alpha_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::AlphabeticV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/bc_v1.rs b/provider/testdata/data/baked/props/bc_v1.rs index b240fa0095f..f257c33cc09 100644 --- a/provider/testdata/data/baked/props/bc_v1.rs +++ b/provider/testdata/data/baked/props/bc_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::BidiClassV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/bidi_c_v1.rs b/provider/testdata/data/baked/props/bidi_c_v1.rs index ffba41f65af..c61d822cd7e 100644 --- a/provider/testdata/data/baked/props/bidi_c_v1.rs +++ b/provider/testdata/data/baked/props/bidi_c_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::BidiControlV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/bidi_m_v1.rs b/provider/testdata/data/baked/props/bidi_m_v1.rs index 1ca041b6525..6d52ee9b185 100644 --- a/provider/testdata/data/baked/props/bidi_m_v1.rs +++ b/provider/testdata/data/baked/props/bidi_m_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::BidiMirroredV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/cased_v1.rs b/provider/testdata/data/baked/props/cased_v1.rs index bbeea4f20da..1b37f4ded9b 100644 --- a/provider/testdata/data/baked/props/cased_v1.rs +++ b/provider/testdata/data/baked/props/cased_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::CasedV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/casemap_v1.rs b/provider/testdata/data/baked/props/casemap_v1.rs index 656c9d27a41..174404a0887 100644 --- a/provider/testdata/data/baked/props/casemap_v1.rs +++ b/provider/testdata/data/baked/props/casemap_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_casemapping::provider::CaseMappingV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_casemapping::provider::CaseMappingV1 { casemap: ::icu_casemapping::provider::CaseMappingInternals { trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/props/ccc_v1.rs b/provider/testdata/data/baked/props/ccc_v1.rs index 15c2c902f5c..848ca843bf4 100644 --- a/provider/testdata/data/baked/props/ccc_v1.rs +++ b/provider/testdata/data/baked/props/ccc_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: CanonicalCombiningClassV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/ci_v1.rs b/provider/testdata/data/baked/props/ci_v1.rs index 883d8bf4d34..0017200b3b1 100644 --- a/provider/testdata/data/baked/props/ci_v1.rs +++ b/provider/testdata/data/baked/props/ci_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::CaseIgnorableV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/cwcf_v1.rs b/provider/testdata/data/baked/props/cwcf_v1.rs index eb1ebfc6c20..5ad7c937ced 100644 --- a/provider/testdata/data/baked/props/cwcf_v1.rs +++ b/provider/testdata/data/baked/props/cwcf_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ChangesWhenCasefoldedV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/cwkcf_v1.rs b/provider/testdata/data/baked/props/cwkcf_v1.rs index 58e05437354..96211f5101a 100644 --- a/provider/testdata/data/baked/props/cwkcf_v1.rs +++ b/provider/testdata/data/baked/props/cwkcf_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ChangesWhenNfkcCasefoldedV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/cwl_v1.rs b/provider/testdata/data/baked/props/cwl_v1.rs index dd17e665d86..6f438b39363 100644 --- a/provider/testdata/data/baked/props/cwl_v1.rs +++ b/provider/testdata/data/baked/props/cwl_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ChangesWhenLowercasedV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/cwt_v1.rs b/provider/testdata/data/baked/props/cwt_v1.rs index 9218db426a2..16437a267c4 100644 --- a/provider/testdata/data/baked/props/cwt_v1.rs +++ b/provider/testdata/data/baked/props/cwt_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ChangesWhenTitlecasedV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/cwu_v1.rs b/provider/testdata/data/baked/props/cwu_v1.rs index 88ff51fcbe9..7dd805f4951 100644 --- a/provider/testdata/data/baked/props/cwu_v1.rs +++ b/provider/testdata/data/baked/props/cwu_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ChangesWhenUppercasedV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/dash_v1.rs b/provider/testdata/data/baked/props/dash_v1.rs index 9cf8a4fdb26..8f70537ba56 100644 --- a/provider/testdata/data/baked/props/dash_v1.rs +++ b/provider/testdata/data/baked/props/dash_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::DashV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/dep_v1.rs b/provider/testdata/data/baked/props/dep_v1.rs index cb0d86b9565..5b14a787775 100644 --- a/provider/testdata/data/baked/props/dep_v1.rs +++ b/provider/testdata/data/baked/props/dep_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::DeprecatedV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/di_v1.rs b/provider/testdata/data/baked/props/di_v1.rs index 6dd48d2657f..37847607b49 100644 --- a/provider/testdata/data/baked/props/di_v1.rs +++ b/provider/testdata/data/baked/props/di_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: DefaultIgnorableCodePointV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/dia_v1.rs b/provider/testdata/data/baked/props/dia_v1.rs index f771752d45d..690afe0ceb0 100644 --- a/provider/testdata/data/baked/props/dia_v1.rs +++ b/provider/testdata/data/baked/props/dia_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::DiacriticV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/ea_v1.rs b/provider/testdata/data/baked/props/ea_v1.rs index b46ded69d6c..01cced2e40b 100644 --- a/provider/testdata/data/baked/props/ea_v1.rs +++ b/provider/testdata/data/baked/props/ea_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::EastAsianWidthV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/ebase_v1.rs b/provider/testdata/data/baked/props/ebase_v1.rs index 33688f4c70f..1a6b4c85306 100644 --- a/provider/testdata/data/baked/props/ebase_v1.rs +++ b/provider/testdata/data/baked/props/ebase_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::EmojiModifierBaseV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/ecomp_v1.rs b/provider/testdata/data/baked/props/ecomp_v1.rs index 72a1433cb5b..1f449e26538 100644 --- a/provider/testdata/data/baked/props/ecomp_v1.rs +++ b/provider/testdata/data/baked/props/ecomp_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::EmojiComponentV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/emod_v1.rs b/provider/testdata/data/baked/props/emod_v1.rs index 820804ab21f..31a481319c4 100644 --- a/provider/testdata/data/baked/props/emod_v1.rs +++ b/provider/testdata/data/baked/props/emod_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::EmojiModifierV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/emoji_v1.rs b/provider/testdata/data/baked/props/emoji_v1.rs index d4e8eb959a0..4c161f9389c 100644 --- a/provider/testdata/data/baked/props/emoji_v1.rs +++ b/provider/testdata/data/baked/props/emoji_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::EmojiV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/epres_v1.rs b/provider/testdata/data/baked/props/epres_v1.rs index d9e1f8bd944..76278c7dedc 100644 --- a/provider/testdata/data/baked/props/epres_v1.rs +++ b/provider/testdata/data/baked/props/epres_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::EmojiPresentationV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/ext_v1.rs b/provider/testdata/data/baked/props/ext_v1.rs index 5709c1dc500..cb6a8ceaadf 100644 --- a/provider/testdata/data/baked/props/ext_v1.rs +++ b/provider/testdata/data/baked/props/ext_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::ExtenderV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/extpict_v1.rs b/provider/testdata/data/baked/props/extpict_v1.rs index f836d44ac4a..1c5fa5b447d 100644 --- a/provider/testdata/data/baked/props/extpict_v1.rs +++ b/provider/testdata/data/baked/props/extpict_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ExtendedPictographicV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/gc_v1.rs b/provider/testdata/data/baked/props/gc_v1.rs index 2c22b54698a..24b2f1ff560 100644 --- a/provider/testdata/data/baked/props/gc_v1.rs +++ b/provider/testdata/data/baked/props/gc_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::GeneralCategoryV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/gcb_v1.rs b/provider/testdata/data/baked/props/gcb_v1.rs index d4401d4f636..3d9e79b83e5 100644 --- a/provider/testdata/data/baked/props/gcb_v1.rs +++ b/provider/testdata/data/baked/props/gcb_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: GraphemeClusterBreakV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/gr_base_v1.rs b/provider/testdata/data/baked/props/gr_base_v1.rs index b35965104bb..1c56a460694 100644 --- a/provider/testdata/data/baked/props/gr_base_v1.rs +++ b/provider/testdata/data/baked/props/gr_base_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::GraphemeBaseV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/gr_ext_v1.rs b/provider/testdata/data/baked/props/gr_ext_v1.rs index 1afdd2dbdde..59d21a43b48 100644 --- a/provider/testdata/data/baked/props/gr_ext_v1.rs +++ b/provider/testdata/data/baked/props/gr_ext_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::GraphemeExtendV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/hex_v1.rs b/provider/testdata/data/baked/props/hex_v1.rs index a82dc5643c7..1d5c542ef13 100644 --- a/provider/testdata/data/baked/props/hex_v1.rs +++ b/provider/testdata/data/baked/props/hex_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::HexDigitV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/idc_v1.rs b/provider/testdata/data/baked/props/idc_v1.rs index 4ddb32222ee..cc7a658f22c 100644 --- a/provider/testdata/data/baked/props/idc_v1.rs +++ b/provider/testdata/data/baked/props/idc_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::IdContinueV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/ideo_v1.rs b/provider/testdata/data/baked/props/ideo_v1.rs index b3c70112170..267266d676a 100644 --- a/provider/testdata/data/baked/props/ideo_v1.rs +++ b/provider/testdata/data/baked/props/ideo_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::IdeographicV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/ids_v1.rs b/provider/testdata/data/baked/props/ids_v1.rs index 073cd9efdd2..bc2440967b6 100644 --- a/provider/testdata/data/baked/props/ids_v1.rs +++ b/provider/testdata/data/baked/props/ids_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::IdStartV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/idsb_v1.rs b/provider/testdata/data/baked/props/idsb_v1.rs index bbd383454e1..1a023a2675c 100644 --- a/provider/testdata/data/baked/props/idsb_v1.rs +++ b/provider/testdata/data/baked/props/idsb_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::IdsBinaryOperatorV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/idst_v1.rs b/provider/testdata/data/baked/props/idst_v1.rs index 7d3d6c3e7c9..850b6f8df86 100644 --- a/provider/testdata/data/baked/props/idst_v1.rs +++ b/provider/testdata/data/baked/props/idst_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: IdsTrinaryOperatorV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/join_c_v1.rs b/provider/testdata/data/baked/props/join_c_v1.rs index 40840341994..8a9cc14b40b 100644 --- a/provider/testdata/data/baked/props/join_c_v1.rs +++ b/provider/testdata/data/baked/props/join_c_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::JoinControlV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/lb_v1.rs b/provider/testdata/data/baked/props/lb_v1.rs index b06271b8286..af2ed6b6313 100644 --- a/provider/testdata/data/baked/props/lb_v1.rs +++ b/provider/testdata/data/baked/props/lb_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::LineBreakV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/loe_v1.rs b/provider/testdata/data/baked/props/loe_v1.rs index f54681a1ef1..5296f17a956 100644 --- a/provider/testdata/data/baked/props/loe_v1.rs +++ b/provider/testdata/data/baked/props/loe_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: LogicalOrderExceptionV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/lower_v1.rs b/provider/testdata/data/baked/props/lower_v1.rs index 4a1a59877f8..6a4f6b106dc 100644 --- a/provider/testdata/data/baked/props/lower_v1.rs +++ b/provider/testdata/data/baked/props/lower_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::LowercaseV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/math_v1.rs b/provider/testdata/data/baked/props/math_v1.rs index f22426b632f..ebd07d2e5ae 100644 --- a/provider/testdata/data/baked/props/math_v1.rs +++ b/provider/testdata/data/baked/props/math_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::MathV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/nchar_v1.rs b/provider/testdata/data/baked/props/nchar_v1.rs index 56f2f425428..8e7839a1e0a 100644 --- a/provider/testdata/data/baked/props/nchar_v1.rs +++ b/provider/testdata/data/baked/props/nchar_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: NoncharacterCodePointV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/pat_syn_v1.rs b/provider/testdata/data/baked/props/pat_syn_v1.rs index 8d3e5d094de..0baaa0d0cea 100644 --- a/provider/testdata/data/baked/props/pat_syn_v1.rs +++ b/provider/testdata/data/baked/props/pat_syn_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::PatternSyntaxV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/pat_ws_v1.rs b/provider/testdata/data/baked/props/pat_ws_v1.rs index 812e6374d10..3213d8a0a3f 100644 --- a/provider/testdata/data/baked/props/pat_ws_v1.rs +++ b/provider/testdata/data/baked/props/pat_ws_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::PatternWhiteSpaceV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/qmark_v1.rs b/provider/testdata/data/baked/props/qmark_v1.rs index d277c2534ea..5437c7d41d2 100644 --- a/provider/testdata/data/baked/props/qmark_v1.rs +++ b/provider/testdata/data/baked/props/qmark_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::QuotationMarkV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/radical_v1.rs b/provider/testdata/data/baked/props/radical_v1.rs index 52a6b0d7af0..5dd1bf1bd44 100644 --- a/provider/testdata/data/baked/props/radical_v1.rs +++ b/provider/testdata/data/baked/props/radical_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::RadicalV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/ri_v1.rs b/provider/testdata/data/baked/props/ri_v1.rs index 83b7287ce2a..72d784debc7 100644 --- a/provider/testdata/data/baked/props/ri_v1.rs +++ b/provider/testdata/data/baked/props/ri_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::RegionalIndicatorV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/sb_v1.rs b/provider/testdata/data/baked/props/sb_v1.rs index 24fc33cbb52..a9686939f7e 100644 --- a/provider/testdata/data/baked/props/sb_v1.rs +++ b/provider/testdata/data/baked/props/sb_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::SentenceBreakV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/sc_v1.rs b/provider/testdata/data/baked/props/sc_v1.rs index 84e8ad08dba..9fe8d42da14 100644 --- a/provider/testdata/data/baked/props/sc_v1.rs +++ b/provider/testdata/data/baked/props/sc_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::ScriptV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/scx_v1.rs b/provider/testdata/data/baked/props/scx_v1.rs index b3ac8763ba2..a10faae7397 100644 --- a/provider/testdata/data/baked/props/scx_v1.rs +++ b/provider/testdata/data/baked/props/scx_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: ScriptWithExtensionsPropertyV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::ScriptWithExtensionsPropertyV1 { data: ::icu_properties::script::ScriptWithExtensions { trie: ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/props/sd_v1.rs b/provider/testdata/data/baked/props/sd_v1.rs index e90f42a9e1e..6f2d086f2e1 100644 --- a/provider/testdata/data/baked/props/sd_v1.rs +++ b/provider/testdata/data/baked/props/sd_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::SoftDottedV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/sterm_v1.rs b/provider/testdata/data/baked/props/sterm_v1.rs index 9e6e4a96e7b..35fd6f2d775 100644 --- a/provider/testdata/data/baked/props/sterm_v1.rs +++ b/provider/testdata/data/baked/props/sterm_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::SentenceTerminalV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/term_v1.rs b/provider/testdata/data/baked/props/term_v1.rs index 4354694784d..fe8dfe5eb8b 100644 --- a/provider/testdata/data/baked/props/term_v1.rs +++ b/provider/testdata/data/baked/props/term_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_properties :: provider :: TerminalPunctuationV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/uideo_v1.rs b/provider/testdata/data/baked/props/uideo_v1.rs index 72073dbe60b..15ddeab4a9f 100644 --- a/provider/testdata/data/baked/props/uideo_v1.rs +++ b/provider/testdata/data/baked/props/uideo_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::UnifiedIdeographV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/upper_v1.rs b/provider/testdata/data/baked/props/upper_v1.rs index d1636ea6061..69d99fc33d4 100644 --- a/provider/testdata/data/baked/props/upper_v1.rs +++ b/provider/testdata/data/baked/props/upper_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::UppercaseV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/vs_v1.rs b/provider/testdata/data/baked/props/vs_v1.rs index d2aee27d21f..8fee82fb0c7 100644 --- a/provider/testdata/data/baked/props/vs_v1.rs +++ b/provider/testdata/data/baked/props/vs_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::VariationSelectorV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/wb_v1.rs b/provider/testdata/data/baked/props/wb_v1.rs index 04ddf8de8aa..a75e1daf877 100644 --- a/provider/testdata/data/baked/props/wb_v1.rs +++ b/provider/testdata/data/baked/props/wb_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::WordBreakV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointMapV1::CodePointTrie( ::icu_collections::codepointtrie::CodePointTrie::from_parts( ::icu_collections::codepointtrie::CodePointTrieHeader { diff --git a/provider/testdata/data/baked/props/wspace_v1.rs b/provider/testdata/data/baked/props/wspace_v1.rs index f719e63d42e..0719d457046 100644 --- a/provider/testdata/data/baked/props/wspace_v1.rs +++ b/provider/testdata/data/baked/props/wspace_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::WhiteSpaceV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/xidc_v1.rs b/provider/testdata/data/baked/props/xidc_v1.rs index 1008cd0cafc..800994bfd8c 100644 --- a/provider/testdata/data/baked/props/xidc_v1.rs +++ b/provider/testdata/data/baked/props/xidc_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::XidContinueV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/props/xids_v1.rs b/provider/testdata/data/baked/props/xids_v1.rs index 95090d4b60e..a1266c691a8 100644 --- a/provider/testdata/data/baked/props/xids_v1.rs +++ b/provider/testdata/data/baked/props/xids_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_properties::provider::XidStartV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_properties::provider::PropertyCodePointSetV1::InversionList(unsafe { #[allow(unused_unsafe)] diff --git a/provider/testdata/data/baked/segmenter/dictionary_v1.rs b/provider/testdata/data/baked/segmenter/dictionary_v1.rs index 88b227e6885..52ac72cc2d5 100644 --- a/provider/testdata/data/baked/segmenter/dictionary_v1.rs +++ b/provider/testdata/data/baked/segmenter/dictionary_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_segmenter :: provider :: UCharDictionaryBreakDataV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("ja", JA), ("th", TH)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("ja", JA), ("th", TH)]); static JA: &DataStruct = &::icu_segmenter::provider::UCharDictionaryBreakDataV1 { trie_data: unsafe { ::zerovec::ZeroVec::from_bytes_unchecked(&[ diff --git a/provider/testdata/data/baked/segmenter/grapheme_v1.rs b/provider/testdata/data/baked/segmenter/grapheme_v1.rs index 8881cfde3ff..adbce18d0cd 100644 --- a/provider/testdata/data/baked/segmenter/grapheme_v1.rs +++ b/provider/testdata/data/baked/segmenter/grapheme_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_segmenter :: provider :: GraphemeClusterBreakDataV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_segmenter::provider::RuleBreakDataV1 { property_table: ::icu_segmenter::provider::RuleBreakPropertyTable( ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/segmenter/line_v1.rs b/provider/testdata/data/baked/segmenter/line_v1.rs index 12d899fb388..12b0f97d1c9 100644 --- a/provider/testdata/data/baked/segmenter/line_v1.rs +++ b/provider/testdata/data/baked/segmenter/line_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_segmenter::provider::LineBreakDataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_segmenter::provider::RuleBreakDataV1 { property_table: ::icu_segmenter::provider::RuleBreakPropertyTable( ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/segmenter/lstm_v1.rs b/provider/testdata/data/baked/segmenter/lstm_v1.rs index cdbcac8b0b6..02ccb5986b0 100644 --- a/provider/testdata/data/baked/segmenter/lstm_v1.rs +++ b/provider/testdata/data/baked/segmenter/lstm_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_segmenter::provider::LstmDataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("th", TH)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("th", TH)]); static TH: &DataStruct = &::icu_segmenter::provider::LstmDataV1 { model: alloc::borrow::Cow::Borrowed("Thai_codepoints_exclusive_model4_heavy"), dic: unsafe { diff --git a/provider/testdata/data/baked/segmenter/sentence_v1.rs b/provider/testdata/data/baked/segmenter/sentence_v1.rs index f6ebc01ad9b..64cdd7ce443 100644 --- a/provider/testdata/data/baked/segmenter/sentence_v1.rs +++ b/provider/testdata/data/baked/segmenter/sentence_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_segmenter::provider::SentenceBreakDataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_segmenter::provider::RuleBreakDataV1 { property_table: ::icu_segmenter::provider::RuleBreakPropertyTable( ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/segmenter/word_v1.rs b/provider/testdata/data/baked/segmenter/word_v1.rs index e49fdb87486..0bb9102a049 100644 --- a/provider/testdata/data/baked/segmenter/word_v1.rs +++ b/provider/testdata/data/baked/segmenter/word_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_segmenter::provider::WordBreakDataV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_segmenter::provider::RuleBreakDataV1 { property_table: ::icu_segmenter::provider::RuleBreakPropertyTable( ::icu_collections::codepointtrie::CodePointTrie::from_parts( diff --git a/provider/testdata/data/baked/time_zone/exemplar_cities_v1.rs b/provider/testdata/data/baked/time_zone/exemplar_cities_v1.rs index 06dabd74578..1ead8a24a26 100644 --- a/provider/testdata/data/baked/time_zone/exemplar_cities_v1.rs +++ b/provider/testdata/data/baked/time_zone/exemplar_cities_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: time_zones :: ExemplarCitiesV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/time_zone/formats_v1.rs b/provider/testdata/data/baked/time_zone/formats_v1.rs index 5c4fd0ce209..d6ef36949ea 100644 --- a/provider/testdata/data/baked/time_zone/formats_v1.rs +++ b/provider/testdata/data/baked/time_zone/formats_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: time_zones :: TimeZoneFormatsV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/time_zone/generic_long_v1.rs b/provider/testdata/data/baked/time_zone/generic_long_v1.rs index c2d06257713..cde0739a9c9 100644 --- a/provider/testdata/data/baked/time_zone/generic_long_v1.rs +++ b/provider/testdata/data/baked/time_zone/generic_long_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: time_zones :: MetaZoneGenericNamesLongV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/time_zone/generic_short_v1.rs b/provider/testdata/data/baked/time_zone/generic_short_v1.rs index 780a77a5165..c8808002d6c 100644 --- a/provider/testdata/data/baked/time_zone/generic_short_v1.rs +++ b/provider/testdata/data/baked/time_zone/generic_short_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: time_zones :: MetaZoneGenericNamesShortV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/provider/testdata/data/baked/time_zone/metazone_period_v1.rs b/provider/testdata/data/baked/time_zone/metazone_period_v1.rs index 2ae9d49e9d3..a85a59f6f5a 100644 --- a/provider/testdata/data/baked/time_zone/metazone_period_v1.rs +++ b/provider/testdata/data/baked/time_zone/metazone_period_v1.rs @@ -2,7 +2,7 @@ type DataStruct = <::icu_timezone::provider::MetaZonePeriodV1Marker as ::icu_provider::DataMarker>::Yokeable; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[("und", UND)]); + litemap::LiteMap::from_sorted_store_unchecked(&[("und", UND)]); static UND: &DataStruct = &::icu_timezone::provider::MetaZonePeriodV1(unsafe { #[allow(unused_unsafe)] ::zerovec::ZeroMap2d::from_parts_unchecked( diff --git a/provider/testdata/data/baked/time_zone/specific_long_v1.rs b/provider/testdata/data/baked/time_zone/specific_long_v1.rs index 846945d7529..7b7465503da 100644 --- a/provider/testdata/data/baked/time_zone/specific_long_v1.rs +++ b/provider/testdata/data/baked/time_zone/specific_long_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: time_zones :: MetaZoneSpecificNamesLongV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN), diff --git a/provider/testdata/data/baked/time_zone/specific_short_v1.rs b/provider/testdata/data/baked/time_zone/specific_short_v1.rs index 65fccf1ecdc..8bbbffb2f31 100644 --- a/provider/testdata/data/baked/time_zone/specific_short_v1.rs +++ b/provider/testdata/data/baked/time_zone/specific_short_v1.rs @@ -1,7 +1,7 @@ // @generated type DataStruct = < :: icu_datetime :: provider :: time_zones :: MetaZoneSpecificNamesShortV1Marker as :: icu_provider :: DataMarker > :: Yokeable ; pub static DATA: litemap::LiteMap<&str, &DataStruct, &[(&str, &DataStruct)]> = - litemap::LiteMap::from_sorted_slice_unchecked(&[ + litemap::LiteMap::from_sorted_store_unchecked(&[ ("ar", AR_AR_EG), ("ar-EG", AR_AR_EG), ("bn", BN_CCP), diff --git a/utils/litemap/src/map.rs b/utils/litemap/src/map.rs index df81696dcc7..7b2821af94b 100644 --- a/utils/litemap/src/map.rs +++ b/utils/litemap/src/map.rs @@ -35,21 +35,20 @@ impl LiteMap { } } -impl LiteMap> { - /// Convert a `Vec<(K, V)>` into a [`LiteMap`]. - /// - /// # Safety +impl LiteMap { + /// Construct a new [`LiteMap`] using the given values /// - /// The vec must be sorted and have no duplicate keys. - #[inline] - pub unsafe fn from_tuple_vec_unchecked(values: Vec<(K, V)>) -> Self { + /// The store must be sorted and have no duplicate keys. + pub const fn from_sorted_store_unchecked(values: S) -> Self { Self { values, _key_type: PhantomData, _value_type: PhantomData, } } +} +impl LiteMap> { /// Convert a [`LiteMap`] into a sorted `Vec<(K, V)>`. #[inline] pub fn into_tuple_vec(self) -> Vec<(K, V)> { @@ -57,20 +56,6 @@ impl LiteMap> { } } -impl<'a, K, V> LiteMap { - /// Convert a `&'a [(K, V)]` into a [`LiteMap`]. - /// - /// The slice must be sorted and have no duplicate keys. - #[inline] - pub const fn from_sorted_slice_unchecked(values: &'a [(K, V)]) -> Self { - Self { - values, - _key_type: PhantomData, - _value_type: PhantomData, - } - } -} - impl LiteMap where S: StoreConstEmpty, diff --git a/utils/litemap/tests/rkyv.rs b/utils/litemap/tests/rkyv.rs index e6754c190db..2d6438dc795 100644 --- a/utils/litemap/tests/rkyv.rs +++ b/utils/litemap/tests/rkyv.rs @@ -81,6 +81,6 @@ fn rkyv_deserialize() { let archived = unsafe { archived_root::(&RKYV.0) }; let deserialized = archived.deserialize(&mut Infallible).unwrap(); // Safe because we are deserializing a buffer from a trusted source - let deserialized: LiteMapOfStrings = unsafe { LiteMap::from_tuple_vec_unchecked(deserialized) }; + let deserialized: LiteMapOfStrings = LiteMap::from_sorted_store_unchecked(deserialized); assert_eq!(deserialized.get("tr"), Some(&"Turkish".to_string())); }