pub(crate) enum TimeZoneFormatterUnit {
GenericNonLocationLong(GenericNonLocationLongFormat),
GenericNonLocationShort(GenericNonLocationShortFormat),
SpecificNonLocationLong(SpecificNonLocationLongFormat),
SpecificNonLocationShort(SpecificNonLocationShortFormat),
GenericLocation(GenericLocationFormat),
ExemplarCity(ExemplarCityFormat),
WithFallback(FallbackTimeZoneFormatterUnit),
}
Variants§
GenericNonLocationLong(GenericNonLocationLongFormat)
GenericNonLocationShort(GenericNonLocationShortFormat)
SpecificNonLocationLong(SpecificNonLocationLongFormat)
SpecificNonLocationShort(SpecificNonLocationShortFormat)
GenericLocation(GenericLocationFormat)
ExemplarCity(ExemplarCityFormat)
WithFallback(FallbackTimeZoneFormatterUnit)
Trait Implementations§
source§impl Clone for TimeZoneFormatterUnit
impl Clone for TimeZoneFormatterUnit
source§fn clone(&self) -> TimeZoneFormatterUnit
fn clone(&self) -> TimeZoneFormatterUnit
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 TimeZoneFormatterUnit
impl Debug for TimeZoneFormatterUnit
source§impl Default for TimeZoneFormatterUnit
impl Default for TimeZoneFormatterUnit
source§impl FormatTimeZone for TimeZoneFormatterUnit
impl FormatTimeZone for TimeZoneFormatterUnit
source§fn format<W: PartsWrite + ?Sized>(
&self,
sink: &mut W,
time_zone: &impl TimeZoneInput,
data_payloads: &TimeZoneDataPayloads,
) -> Result<Result, DateTimeError>
fn format<W: PartsWrite + ?Sized>( &self, sink: &mut W, time_zone: &impl TimeZoneInput, data_payloads: &TimeZoneDataPayloads, ) -> Result<Result, DateTimeError>
Tries to write the timezone to the sink. If a DateTimeError is returned, the sink
has not been touched, so another format can be attempted.
source§impl PartialEq for TimeZoneFormatterUnit
impl PartialEq for TimeZoneFormatterUnit
source§fn eq(&self, other: &TimeZoneFormatterUnit) -> bool
fn eq(&self, other: &TimeZoneFormatterUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TimeZoneFormatterUnit
impl StructuralPartialEq for TimeZoneFormatterUnit
Auto Trait Implementations§
impl Freeze for TimeZoneFormatterUnit
impl RefUnwindSafe for TimeZoneFormatterUnit
impl Send for TimeZoneFormatterUnit
impl Sync for TimeZoneFormatterUnit
impl Unpin for TimeZoneFormatterUnit
impl UnwindSafe for TimeZoneFormatterUnit
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> 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