Struct icu_datetime::provider::time_zones::TimeZoneFormatsV1 [−][src]
pub struct TimeZoneFormatsV1<'data> { pub hour_format: (Cow<'data, str>, Cow<'data, str>), pub gmt_format: Cow<'data, str>, pub gmt_zero_format: Cow<'data, str>, pub region_format: Cow<'data, str>, pub region_format_variants: LiteMap<Cow<'data, TinyStr8>, Cow<'data, str>>, pub fallback_format: Cow<'data, str>, }
Expand description
An ICU4X mapping to the CLDR timeZoneNames format strings. See CLDR-JSON timeZoneNames.json for more context.
Fields
hour_format: (Cow<'data, str>, Cow<'data, str>)
The hour format for displaying GMT offsets.
gmt_format: Cow<'data, str>
The localized GMT-offset format.
gmt_zero_format: Cow<'data, str>
The localized GMT format with no offset.
region_format: Cow<'data, str>
The format string for a region.
region_format_variants: LiteMap<Cow<'data, TinyStr8>, Cow<'data, str>>
The format strings for region format variants e.g. daylight, standard.
fallback_format: Cow<'data, str>
The format string to fall back to if data is unavailable.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Output = TimeZoneFormatsV1<'a>
type Output = TimeZoneFormatsV1<'a>
This type MUST be Self
with the 'static
replaced with 'a
, i.e. Self<'a>
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
This method must cast self
between Self<'static>
and Self<'a>
. Read more
This method can be used to cast away Self<'a>
’s lifetime. Read more
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 more
Clone the cart C
into a [Yokeable
] struct, which may retain references into C
.
Auto Trait Implementations
impl<'data> RefUnwindSafe for TimeZoneFormatsV1<'data>
impl<'data> Send for TimeZoneFormatsV1<'data>
impl<'data> Sync for TimeZoneFormatsV1<'data>
impl<'data> Unpin for TimeZoneFormatsV1<'data>
impl<'data> UnwindSafe for TimeZoneFormatsV1<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more
Clone this trait object reference, returning a boxed trait object.