Struct icu_provider::DataKeyMetadata
source · #[non_exhaustive]pub struct DataKeyMetadata {
pub fallback_priority: LocaleFallbackPriority,
pub extension_key: Option<Key>,
pub fallback_supplement: Option<LocaleFallbackSupplement>,
pub singleton: bool,
}
Expand description
Metadata statically associated with a particular DataKey
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.fallback_priority: LocaleFallbackPriority
What to prioritize when fallbacking on this DataKey
.
extension_key: Option<Key>
A Unicode extension keyword to consider when loading data for this DataKey
.
fallback_supplement: Option<LocaleFallbackSupplement>
Optional choice for additional fallbacking data required for loading this marker.
For more information, see LocaleFallbackConfig::fallback_supplement
.
singleton: bool
Whether the key has a singleton value, as opposed to per-locale values. Singleton keys behave differently, e.g. they never perform fallback, and can be optimized in data providers.
Implementations§
source§impl DataKeyMetadata
impl DataKeyMetadata
sourcepub const fn const_default() -> Self
pub const fn const_default() -> Self
Const-friendly version of Default::default
.
Trait Implementations§
source§impl Clone for DataKeyMetadata
impl Clone for DataKeyMetadata
source§fn clone(&self) -> DataKeyMetadata
fn clone(&self) -> DataKeyMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DataKeyMetadata
impl Debug for DataKeyMetadata
source§impl Default for DataKeyMetadata
impl Default for DataKeyMetadata
source§impl Ord for DataKeyMetadata
impl Ord for DataKeyMetadata
source§fn cmp(&self, other: &DataKeyMetadata) -> Ordering
fn cmp(&self, other: &DataKeyMetadata) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DataKeyMetadata
impl PartialEq for DataKeyMetadata
source§impl PartialOrd for DataKeyMetadata
impl PartialOrd for DataKeyMetadata
impl Copy for DataKeyMetadata
impl Eq for DataKeyMetadata
impl StructuralPartialEq for DataKeyMetadata
Auto Trait Implementations§
impl Freeze for DataKeyMetadata
impl RefUnwindSafe for DataKeyMetadata
impl Send for DataKeyMetadata
impl Sync for DataKeyMetadata
impl Unpin for DataKeyMetadata
impl UnwindSafe for DataKeyMetadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)