Enum icu::datetime::options::components::TimeZoneName
source · #[non_exhaustive]pub enum TimeZoneName {
ShortSpecific,
LongSpecific,
LongOffset,
ShortOffset,
ShortGeneric,
LongGeneric,
}
Expand description
Options for displaying a time zone for the components::
Bag
.
Note that the initial implementation is focusing on only supporting ECMA-402 compatible options.
🚧 This code is experimental; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. It can be enabled with the `experimental` Cargo feature
of the icu meta-crate. Use with caution.
#1317
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.
ShortSpecific
Short localized form, without the location. (e.g.: PST, GMT-8)
LongSpecific
Long localized form, without the location (e.g., Pacific Standard Time, Nordamerikanische Westküsten-Normalzeit)
LongOffset
Long localized offset form, e.g. GMT-08:00
ShortOffset
Short localized offset form, e.g. GMT-8
ShortGeneric
Short generic non-location format (e.g.: PT, Los Angeles, Zeit).
LongGeneric
Long generic non-location format (e.g.: Pacific Time, Nordamerikanische Westküstenzeit),
Trait Implementations§
source§impl Clone for TimeZoneName
impl Clone for TimeZoneName
source§fn clone(&self) -> TimeZoneName
fn clone(&self) -> TimeZoneName
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 Debug for TimeZoneName
impl Debug for TimeZoneName
source§impl<'de> Deserialize<'de> for TimeZoneName
impl<'de> Deserialize<'de> for TimeZoneName
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeZoneName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeZoneName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<TimeZoneName> for Field
impl From<TimeZoneName> for Field
source§fn from(time_zone_name: TimeZoneName) -> Field
fn from(time_zone_name: TimeZoneName) -> Field
Converts to this type from the input type.
source§impl Hash for TimeZoneName
impl Hash for TimeZoneName
source§impl PartialEq for TimeZoneName
impl PartialEq for TimeZoneName
source§impl Serialize for TimeZoneName
impl Serialize for TimeZoneName
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TimeZoneName
impl Eq for TimeZoneName
impl StructuralPartialEq for TimeZoneName
Auto Trait Implementations§
impl Freeze for TimeZoneName
impl RefUnwindSafe for TimeZoneName
impl Send for TimeZoneName
impl Sync for TimeZoneName
impl Unpin for TimeZoneName
impl UnwindSafe for TimeZoneName
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