#[repr(u8)]
pub enum TimeZone {
LowerZ,
UpperZ,
UpperO,
LowerV,
UpperV,
LowerX,
UpperX,
}
Expand description
An enum for the possible symbols of a time zone field in a date pattern.
Variants
LowerZ
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.
UpperZ
Field symbol for any of: the ISO8601 basic format with hours, minutes and optional seconds fields, the long localized GMT format, or the ISO8601 extended format with hours, minutes and optional seconds fields.
This field symbol is represented by the character Z
in a date formatting pattern string.
For more details, see documentation on date field symbols.
UpperO
Field symbol for the localized GMT 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.
LowerV
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.
UpperV
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.
LowerX
Field symbol for either the ISO8601 basic format or ISO8601 extended format, with an optional ISO8601 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.
UpperX
Field symbol for either the ISO8601 basic format or ISO8601 extended format. This does not allow an
optional ISO8601 UTC indicator Z
, whereas TimeZone::LowerX
allows the optional 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
sourceimpl Bake for TimeZone
impl Bake for TimeZone
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'de> Deserialize<'de> for TimeZone
impl<'de> Deserialize<'de> for TimeZone
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<TimeZone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeZone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<TimeZone> for FieldSymbol
impl From<TimeZone> for FieldSymbol
sourcefn from(input: TimeZone) -> FieldSymbol
fn from(input: TimeZone) -> FieldSymbol
Converts to this type from the input type.
sourceimpl Ord for TimeZone
impl Ord for TimeZone
sourceimpl PartialOrd<TimeZone> for TimeZone
impl PartialOrd<TimeZone> for TimeZone
sourcefn partial_cmp(&self, other: &TimeZone) -> Option<Ordering>
fn partial_cmp(&self, other: &TimeZone) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for TimeZone
impl Serialize for TimeZone
sourcefn 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
sourceimpl<'a> Yokeable<'a> for TimeZone
impl<'a> Yokeable<'a> for TimeZone
sourcefn transform(&self) -> &<TimeZone as Yokeable<'a>>::Output
fn transform(&self) -> &<TimeZone as Yokeable<'a>>::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> <TimeZone as Yokeable<'a>>::Output
fn transform_owned(self) -> <TimeZone as Yokeable<'a>>::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceimpl<'a> ZeroMapKV<'a> for TimeZone
impl<'a> ZeroMapKV<'a> for TimeZone
impl Copy for TimeZone
impl Eq for TimeZone
impl<'a> IsCovariant<'a> for TimeZone
impl StructuralEq for TimeZone
impl StructuralPartialEq for TimeZone
Auto Trait Implementations
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnwindSafe for TimeZone
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more