#[non_exhaustive]
pub enum FallbackFormat {
Iso8601(IsoFormat, IsoMinutes, IsoSeconds),
LocalizedGmt,
}
Expand description
An enum for time zone fallback formats.
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.
Iso8601(IsoFormat, IsoMinutes, IsoSeconds)
The ISO 8601 format for time zone format fallback.
LocalizedGmt
The localized GMT format for time zone format fallback.
See UTS 35 on Dates for more information.
Trait Implementations
sourceimpl Clone for FallbackFormat
impl Clone for FallbackFormat
sourcefn clone(&self) -> FallbackFormat
fn clone(&self) -> FallbackFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FallbackFormat
impl Debug for FallbackFormat
sourceimpl Default for FallbackFormat
impl Default for FallbackFormat
sourcefn default() -> FallbackFormat
fn default() -> FallbackFormat
Returns the “default value” for a type. Read more
sourceimpl From<FallbackFormat> for TimeZoneFormatterOptions
impl From<FallbackFormat> for TimeZoneFormatterOptions
sourcefn from(fallback_format: FallbackFormat) -> TimeZoneFormatterOptions
fn from(fallback_format: FallbackFormat) -> TimeZoneFormatterOptions
Converts to this type from the input type.
sourceimpl PartialEq<FallbackFormat> for FallbackFormat
impl PartialEq<FallbackFormat> for FallbackFormat
sourcefn eq(&self, other: &FallbackFormat) -> bool
fn eq(&self, other: &FallbackFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FallbackFormat) -> bool
fn ne(&self, other: &FallbackFormat) -> bool
This method tests for !=
.
impl Copy for FallbackFormat
impl StructuralPartialEq for FallbackFormat
Auto Trait Implementations
impl RefUnwindSafe for FallbackFormat
impl Send for FallbackFormat
impl Sync for FallbackFormat
impl Unpin for FallbackFormat
impl UnwindSafe for FallbackFormat
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> 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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more