Enum icu_datetime::fields::TimeZone
source · #[repr(u8)]pub enum TimeZone {
SpecificNonLocation = 0,
LocalizedOffset = 1,
GenericNonLocation = 2,
Location = 3,
Iso = 4,
IsoWithZ = 5,
}
Expand description
An enum for the possible symbols of a time zone field in a date pattern.
Variants§
SpecificNonLocation = 0
Field symbol for the specific non-location format of a time zone.
For example: “Pacific Standard Time”
This field symbol is represented by the character z
in a date formatting pattern string.
For more details, see documentation on date field symbols.
LocalizedOffset = 1
Field symbol for the localized offset format of a time zone.
For example: “GMT-07:00”
This field symbol is represented by the character O
in a date formatting pattern string.
For more details, see documentation on date field symbols.
GenericNonLocation = 2
Field symbol for the generic non-location format of a time zone.
For example: “Pacific Time”
This field symbol is represented by the character v
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Location = 3
Field symbol for any of: the time zone id, time zone exemplar city, or generic location format.
This field symbol is represented by the character V
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Iso = 4
Field symbol for either the ISO-8601 basic format or ISO-8601 extended format. This does not use an
optional ISO-8601 UTC indicator Z
, whereas TimeZone::IsoWithZ
produces Z
.
This field symbol is represented by the character x
in a date formatting pattern string.
For more details, see documentation on date field symbols.
IsoWithZ = 5
Field symbol for either the ISO-8601 basic format or ISO-8601 extended format, with the ISO-8601 UTC indicator Z
.
This field symbol is represented by the character X
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl AsULE for TimeZone
impl AsULE for TimeZone
source§type ULE = TimeZoneULE
type ULE = TimeZoneULE
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(other: Self::ULE) -> Self
fn from_unaligned(other: Self::ULE) -> Self
source§impl<'de> Deserialize<'de> for TimeZone
impl<'de> Deserialize<'de> for TimeZone
source§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>,
source§impl From<TimeZone> for FieldSymbol
impl From<TimeZone> for FieldSymbol
source§impl Ord for TimeZone
impl Ord for TimeZone
source§impl PartialOrd for TimeZone
impl PartialOrd for TimeZone
source§impl<'a> Yokeable<'a> for TimeZonewhere
Self: Sized,
impl<'a> Yokeable<'a> for TimeZonewhere
Self: Sized,
source§type Output = TimeZone
type Output = TimeZone
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
Self<'a>
’s lifetime. Read moresource§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),
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'a> ZeroMapKV<'a> for TimeZone
impl<'a> ZeroMapKV<'a> for TimeZone
impl Copy for TimeZone
impl Eq for TimeZone
impl StructuralPartialEq for TimeZone
Auto Trait Implementations§
impl Freeze for TimeZone
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnwindSafe for TimeZone
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