#[non_exhaustive]pub enum ZoneOption<'a> {
Input,
Utc,
Offset(i32),
Named(&'a str),
}Expand description
A time zone as an option value (timeZone) or a formatting target.
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.
Input
input: the operand’s own zone.
Utc
UTC.
Offset(i32)
A UTC offset, in seconds east.
Named(&'a str)
An IANA zone: a well-formed RFC 9557 time-zone-name. As the
formatting context’s zone only, also a POSIX TZ rule
(TimeZone::rules), which the host evaluates as it does a name
(Host::zone_offset).
Trait Implementations§
Source§impl<'a> Clone for ZoneOption<'a>
impl<'a> Clone for ZoneOption<'a>
impl<'a> Copy for ZoneOption<'a>
Source§impl<'a> Debug for ZoneOption<'a>
impl<'a> Debug for ZoneOption<'a>
impl<'a> Eq for ZoneOption<'a>
Source§impl<'a> Hash for ZoneOption<'a>
impl<'a> Hash for ZoneOption<'a>
Source§impl<'a> PartialEq for ZoneOption<'a>
impl<'a> PartialEq for ZoneOption<'a>
impl<'a> StructuralPartialEq for ZoneOption<'a>
Auto Trait Implementations§
impl<'a> Freeze for ZoneOption<'a>
impl<'a> RefUnwindSafe for ZoneOption<'a>
impl<'a> Send for ZoneOption<'a>
impl<'a> Sync for ZoneOption<'a>
impl<'a> Unpin for ZoneOption<'a>
impl<'a> UnsafeUnpin for ZoneOption<'a>
impl<'a> UnwindSafe for ZoneOption<'a>
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