pub struct Transition {
pub when: i64,
pub type_idx: usize,
pub is_std: bool,
pub is_ut: bool,
}Expand description
A moment when the timezone rule changes.
Fields§
§when: i64Unix timestamp at which the transition takes effect.
type_idx: usizeIndex into the zone’s types.
is_std: boolTrue if the transition time is standard (not wall clock).
is_ut: boolTrue if the transition time is UT (not local).
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
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 moreimpl Copy for Transition
Source§impl Debug for Transition
impl Debug for Transition
impl Eq for Transition
Source§impl PartialEq for Transition
impl PartialEq for Transition
Source§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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