Enum icu::datetime::neo_skeleton::NeoTimeZoneStyle
source · #[non_exhaustive]pub enum NeoTimeZoneStyle {
Default,
Location,
Generic,
Specific,
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::Specific
(Pacific Daylight Time), but whether it isNeoTimeZoneStyle::Generic
orNeoTimeZoneStyle::Specific
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
.
Generic
The generic non-location format, e.g., “Pacific Time”.
When unavailable, falls back to NeoTimeZoneStyle::Location
.
Specific
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”.
Implementations§
source§impl NeoTimeZoneStyle
impl NeoTimeZoneStyle
sourcepub fn long(self) -> NeoTimeZoneSkeleton
pub fn long(self) -> NeoTimeZoneSkeleton
Creates a skeleton for this time zone style with a long length.
sourcepub fn medium(self) -> NeoTimeZoneSkeleton
pub fn medium(self) -> NeoTimeZoneSkeleton
Creates a skeleton for this time zone style with a medium length.
sourcepub fn short(self) -> NeoTimeZoneSkeleton
pub fn short(self) -> NeoTimeZoneSkeleton
Creates a skeleton for this time zone style with a short length.
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 From<NeoTimeZoneStyle> for NeoComponents
impl From<NeoTimeZoneStyle> for NeoComponents
source§fn from(value: NeoTimeZoneStyle) -> NeoComponents
fn from(value: NeoTimeZoneStyle) -> NeoComponents
source§impl Hash for NeoTimeZoneStyle
impl Hash for NeoTimeZoneStyle
source§impl PartialEq for NeoTimeZoneStyle
impl PartialEq for NeoTimeZoneStyle
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> 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)
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>
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