pub struct Locations<'data> {
pub locations: ZeroMap<'data, TimeZone, str>,
pub pattern_generic: Cow<'data, Pattern<SinglePlaceholder>>,
pub pattern_standard: Cow<'data, Pattern<SinglePlaceholder>>,
pub pattern_daylight: Cow<'data, Pattern<SinglePlaceholder>>,
pub pattern_partial_location: Cow<'data, Pattern<DoublePlaceholder>>,
}
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, Pattern<SinglePlaceholder>>
The format string for a regionโs generic time.
pattern_standard: Cow<'data, Pattern<SinglePlaceholder>>
The format string for a regionโs standard time.
pattern_daylight: Cow<'data, Pattern<SinglePlaceholder>>
The format string for a regionโs daylight time.
pattern_partial_location: Cow<'data, Pattern<DoublePlaceholder>>
Metazone Name with Location Pattern.
Trait Implementationsยง
Sourceยงimpl<'de, 'data> Deserialize<'de> for Locations<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for Locations<'data>where
'de: 'data,
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<Locations<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Locations<'data>, <__D as Deserializer<'de>>::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ยง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>
impl<'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