pub struct MetazoneSpecificNames<'data> {
pub defaults: ZeroMap<'data, (MetazoneId, TimeZoneVariant), str>,
pub overrides: ZeroMap<'data, (TimeZone, TimeZoneVariant), str>,
pub use_standard: ZeroVec<'data, MetazoneId>,
}Expand description
An ICU4X mapping to specific metazone names. Specific names include time variants such as “daylight.” See CLDR-JSON timeZoneNames.json for more context.
These markers use a checksum to ensure consistency with MetazonePeriod.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Fields§
§defaults: ZeroMap<'data, (MetazoneId, TimeZoneVariant), str>The default mapping between metazone id and localized metazone name.
overrides: ZeroMap<'data, (TimeZone, TimeZoneVariant), str>The override mapping between timezone id and localized metazone name.
use_standard: ZeroVec<'data, MetazoneId>The metazones for which the standard name is in MetazoneGenericStandardNames*V1
Trait Implementations§
Source§impl<'data> Clone for MetazoneSpecificNames<'data>
impl<'data> Clone for MetazoneSpecificNames<'data>
Source§fn clone(&self) -> MetazoneSpecificNames<'data>
fn clone(&self) -> MetazoneSpecificNames<'data>
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<'data> Debug for MetazoneSpecificNames<'data>
impl<'data> Debug for MetazoneSpecificNames<'data>
Source§impl<'data> Default for MetazoneSpecificNames<'data>
impl<'data> Default for MetazoneSpecificNames<'data>
Source§fn default() -> MetazoneSpecificNames<'data>
fn default() -> MetazoneSpecificNames<'data>
Returns the “default value” for a type. Read more
Source§impl<'de: 'data, 'data> Deserialize<'de> for MetazoneSpecificNames<'data>
impl<'de: 'data, 'data> Deserialize<'de> for MetazoneSpecificNames<'data>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MaybeAsVarULE for MetazoneSpecificNames<'_>
impl MaybeAsVarULE for MetazoneSpecificNames<'_>
Source§impl<'data> PartialEq for MetazoneSpecificNames<'data>
impl<'data> PartialEq for MetazoneSpecificNames<'data>
Source§fn eq(&self, other: &MetazoneSpecificNames<'data>) -> bool
fn eq(&self, other: &MetazoneSpecificNames<'data>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Yokeable<'a> for MetazoneSpecificNames<'static>
impl<'a> Yokeable<'a> for MetazoneSpecificNames<'static>
Source§type Output = MetazoneSpecificNames<'a>
type Output = MetazoneSpecificNames<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Source§impl<'zf, 'zf_inner> ZeroFrom<'zf, MetazoneSpecificNames<'zf_inner>> for MetazoneSpecificNames<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, MetazoneSpecificNames<'zf_inner>> for MetazoneSpecificNames<'zf>
Source§fn zero_from(this: &'zf MetazoneSpecificNames<'zf_inner>) -> Self
fn zero_from(this: &'zf MetazoneSpecificNames<'zf_inner>) -> Self
Clone the other
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for MetazoneSpecificNames<'data>
Auto Trait Implementations§
impl<'data> Freeze for MetazoneSpecificNames<'data>
impl<'data> RefUnwindSafe for MetazoneSpecificNames<'data>
impl<'data> Send for MetazoneSpecificNames<'data>
impl<'data> Sync for MetazoneSpecificNames<'data>
impl<'data> Unpin for MetazoneSpecificNames<'data>
impl<'data> UnwindSafe for MetazoneSpecificNames<'data>
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more