pub enum ZoneId {
Named(String),
Offset(i32),
}Expand description
The zone half of a DateTime’s equality identity (TCK TemporalCompare):
an IANA zone is identified by its name — so the two halves of a DST
fall-back overlap stay equal — and every other spelling (Z, +00:00,
UTC, …) by the UTC offset it denotes, so Z equals +00:00 while a
named zone never equals the offset it happens to denote.
Variants§
Implementations§
Trait Implementations§
impl Eq for ZoneId
impl StructuralPartialEq for ZoneId
Auto Trait Implementations§
impl Forget for ZoneId
impl Freeze for ZoneId
impl Move for ZoneId
impl RefUnwindSafe for ZoneId
impl Send for ZoneId
impl Sync for ZoneId
impl Unpin for ZoneId
impl UnsafeUnpin for ZoneId
impl UnwindSafe for ZoneId
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.