#[non_exhaustive]pub enum NeoTimeZoneStyle {
Default,
Location,
NonLocation,
SpecificNonLocation,
Offset,
}
Expand description
Specification of the time zone display style.
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
Default
The location format, e.g., “Los Angeles time” or specific non-location format “Pacific Daylight Time”, whichever is idiomatic for the locale.
Note: for now, this is always identical to
NeoTimeZoneStyle::SpecificNonLocation
(Pacific Daylight Time), but whether it isNeoTimeZoneStyle::NonLocation
orNeoTimeZoneStyle::SpecificNonLocation
will be locale-dependent in the future; see CLDR-15566.
Location
The location format, e.g., “Los Angeles time”.
When unavailable, falls back to NeoTimeZoneStyle::Offset
.
NonLocation
The generic non-location format, e.g., “Pacific Time”.
When unavailable, falls back to NeoTimeZoneStyle::Location
.
SpecificNonLocation
The specific non-location format, e.g., “Pacific Daylight Time”.
When unavailable, falls back to NeoTimeZoneStyle::Offset
.
Offset
The offset format, e.g., “GMT−8”.
Trait Implementations§
source§impl Clone for NeoTimeZoneStyle
impl Clone for NeoTimeZoneStyle
source§fn clone(&self) -> NeoTimeZoneStyle
fn clone(&self) -> NeoTimeZoneStyle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NeoTimeZoneStyle
impl Debug for NeoTimeZoneStyle
source§impl Default for NeoTimeZoneStyle
impl Default for NeoTimeZoneStyle
source§fn default() -> NeoTimeZoneStyle
fn default() -> NeoTimeZoneStyle
source§impl Hash for NeoTimeZoneStyle
impl Hash for NeoTimeZoneStyle
source§impl PartialEq for NeoTimeZoneStyle
impl PartialEq for NeoTimeZoneStyle
source§fn eq(&self, other: &NeoTimeZoneStyle) -> bool
fn eq(&self, other: &NeoTimeZoneStyle) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for NeoTimeZoneStyle
impl Eq for NeoTimeZoneStyle
impl StructuralPartialEq for NeoTimeZoneStyle
Auto Trait Implementations§
impl Freeze for NeoTimeZoneStyle
impl RefUnwindSafe for NeoTimeZoneStyle
impl Send for NeoTimeZoneStyle
impl Sync for NeoTimeZoneStyle
impl Unpin for NeoTimeZoneStyle
impl UnwindSafe for NeoTimeZoneStyle
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
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>
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>
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