pub struct ZoneTransition {
pub at_unix_seconds: i64,
pub offset_seconds: i32,
}Expand description
A UTC-offset transition: from at_unix_seconds (a UTC instant) onward, the zone’s local time is
UTC + offset_seconds. A timezone is a list of these, sorted ascending — the shape every IANA
zone reduces to. DST is just two alternating offsets with transitions twice a year.
Fields§
§at_unix_seconds: i64§offset_seconds: i32Trait Implementations§
Source§impl Clone for ZoneTransition
impl Clone for ZoneTransition
Source§fn clone(&self) -> ZoneTransition
fn clone(&self) -> ZoneTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ZoneTransition
impl Debug for ZoneTransition
Source§impl PartialEq for ZoneTransition
impl PartialEq for ZoneTransition
Source§fn eq(&self, other: &ZoneTransition) -> bool
fn eq(&self, other: &ZoneTransition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ZoneTransition
impl Eq for ZoneTransition
impl StructuralPartialEq for ZoneTransition
Auto Trait Implementations§
impl Freeze for ZoneTransition
impl RefUnwindSafe for ZoneTransition
impl Send for ZoneTransition
impl Sync for ZoneTransition
impl Unpin for ZoneTransition
impl UnsafeUnpin for ZoneTransition
impl UnwindSafe for ZoneTransition
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