Enum icu_datetime::fieldset::dynamic::ZoneFieldSet
source · #[non_exhaustive]pub enum ZoneFieldSet {
Z(Z),
O(O),
V(V),
L(L),
}
Expand description
An enumeration over all possible zone field sets.
📏 Note: This enum can be used as the field set parameter of
DateTimeFormatter
, but doing so may link
more formatting data compared to the individual field set structs.
Note: fieldset::Zs
and fieldset::Vs
are not included in this enum
because they are data size optimizations only.
§Time Zone Data Size
Time zone names contribute a lot of data size. For resource-constrained environments, the following formats require the least amount of data:
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Z(Z)
The specific non-location format, as in “Pacific Daylight Time”.
O(O)
The offset format, as in “GMT−8”.
V(V)
The generic non-location format, as in “Pacific Time”.
L(L)
The location format, as in “Los Angeles time”.
Trait Implementations§
source§impl Clone for ZoneFieldSet
impl Clone for ZoneFieldSet
source§fn clone(&self) -> ZoneFieldSet
fn clone(&self) -> ZoneFieldSet
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 DateTimeMarkers for ZoneFieldSet
impl DateTimeMarkers for ZoneFieldSet
source§type D = NeoNeverMarker
type D = NeoNeverMarker
Associated types for date formatting. Read more
source§type T = NeoNeverMarker
type T = NeoNeverMarker
Associated types for time formatting. Read more
source§type Z = ZoneFieldSet
type Z = ZoneFieldSet
Associated types for time zone formatting. Read more
source§type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
type GluePatternV1Marker = NeverMarker<GluePatternV1<'static>>
Marker for loading the date/time glue pattern.
source§impl Debug for ZoneFieldSet
impl Debug for ZoneFieldSet
source§impl GetField<CompositeFieldSet> for ZoneFieldSet
impl GetField<CompositeFieldSet> for ZoneFieldSet
source§fn get_field(&self) -> CompositeFieldSet
fn get_field(&self) -> CompositeFieldSet
Returns the value of this trait’s field
T
.source§impl PartialEq for ZoneFieldSet
impl PartialEq for ZoneFieldSet
source§impl ZoneMarkers for ZoneFieldSet
impl ZoneMarkers for ZoneFieldSet
source§type TimeZoneIdInput = TimeZoneBcp47Id
type TimeZoneIdInput = TimeZoneBcp47Id
Marker for resolving the time zone id input field.
source§type TimeZoneOffsetInput = Option<UtcOffset>
type TimeZoneOffsetInput = Option<UtcOffset>
Marker for resolving the time zone offset input field.
source§type TimeZoneVariantInput = ZoneVariant
type TimeZoneVariantInput = ZoneVariant
Marker for resolving the time zone variant input field.
source§type TimeZoneLocalTimeInput = (Date<Iso>, Time)
type TimeZoneLocalTimeInput = (Date<Iso>, Time)
Marker for resolving the time zone non-location display names, which depend on the datetime.
source§type EssentialsV1Marker = TimeZoneEssentialsV1Marker
type EssentialsV1Marker = TimeZoneEssentialsV1Marker
Marker for loading core time zone data.
source§type LocationsV1Marker = LocationsV1Marker
type LocationsV1Marker = LocationsV1Marker
Marker for loading location names for time zone formatting
source§type GenericLongV1Marker = MetazoneGenericNamesLongV1Marker
type GenericLongV1Marker = MetazoneGenericNamesLongV1Marker
Marker for loading generic long time zone names.
source§type GenericShortV1Marker = MetazoneGenericNamesShortV1Marker
type GenericShortV1Marker = MetazoneGenericNamesShortV1Marker
Marker for loading generic short time zone names.
source§type SpecificLongV1Marker = MetazoneSpecificNamesLongV1Marker
type SpecificLongV1Marker = MetazoneSpecificNamesLongV1Marker
Marker for loading specific long time zone names.
source§type SpecificShortV1Marker = MetazoneSpecificNamesShortV1Marker
type SpecificShortV1Marker = MetazoneSpecificNamesShortV1Marker
Marker for loading generic short time zone names.
source§type MetazonePeriodV1Marker = MetazonePeriodV1Marker
type MetazonePeriodV1Marker = MetazonePeriodV1Marker
Marker for loading metazone periods.
impl Copy for ZoneFieldSet
impl Eq for ZoneFieldSet
impl StructuralPartialEq for ZoneFieldSet
impl UnstableSealed for ZoneFieldSet
Auto Trait Implementations§
impl Freeze for ZoneFieldSet
impl RefUnwindSafe for ZoneFieldSet
impl Send for ZoneFieldSet
impl Sync for ZoneFieldSet
impl Unpin for ZoneFieldSet
impl UnwindSafe for ZoneFieldSet
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
)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