pub struct Locations<'data> {
pub locations: ZeroMap<'data, TimeZone, str>,
pub pattern_generic: Cow<'data, SinglePlaceholderPattern>,
pub pattern_standard: Cow<'data, SinglePlaceholderPattern>,
pub pattern_daylight: Cow<'data, SinglePlaceholderPattern>,
pub pattern_partial_location: Cow<'data, DoublePlaceholderPattern>,
}
Expand description
An ICU4X mapping to the CLDR timeZoneNames exemplar cities. See CLDR-JSON timeZoneNames.json for more context.
🚧 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§
§locations: ZeroMap<'data, TimeZone, str>
Per-zone location display name
pattern_generic: Cow<'data, SinglePlaceholderPattern>
The format string for a region’s generic time.
pattern_standard: Cow<'data, SinglePlaceholderPattern>
The format string for a region’s standard time.
pattern_daylight: Cow<'data, SinglePlaceholderPattern>
The format string for a region’s daylight time.
pattern_partial_location: Cow<'data, DoublePlaceholderPattern>
Metazone Name with Location Pattern.
Trait Implementations§
Source§impl<'data> BakeSize for Locations<'data>
impl<'data> BakeSize for Locations<'data>
Source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
Source§impl<'de: 'data, 'data> Deserialize<'de> for Locations<'data>
impl<'de: 'data, 'data> Deserialize<'de> for Locations<'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 Locations<'_>
impl MaybeAsVarULE for Locations<'_>
Source§type EncodedStruct = [()]
type EncodedStruct = [()]
The [
VarULE
] type for this data struct, or [()]
if it cannot be represented as [VarULE
].Source§impl MaybeEncodeAsVarULE for Locations<'_>
impl MaybeEncodeAsVarULE for Locations<'_>
Source§fn maybe_encode_as_varule(&self) -> Option<&Self::EncodedStruct>
fn maybe_encode_as_varule(&self) -> Option<&Self::EncodedStruct>
Returns the [
MaybeAsVarULE::EncodedStruct
] that represents this data struct,
or None
if the data struct does not support this representation.Source§impl<'a> Yokeable<'a> for Locations<'static>
impl<'a> Yokeable<'a> for Locations<'static>
Source§type Output = Locations<'a>
type Output = Locations<'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§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away
Self<'a>
’s lifetime. Read moreSource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moreimpl<'data> StructuralPartialEq for Locations<'data>
Auto Trait Implementations§
impl<'data> Freeze for Locations<'data>
impl<'data> RefUnwindSafe for Locations<'data>
impl<'data> Send for Locations<'data>
impl<'data> Sync for Locations<'data>
impl<'data> Unpin for Locations<'data>
impl<'data> UnwindSafe for Locations<'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