Struct tz::timezone::Transition
source · [−]pub struct Transition { /* private fields */ }Expand description
Transition of a TZif file
Implementations
sourceimpl Transition
impl Transition
sourcepub const fn new(unix_leap_time: i64, local_time_type_index: usize) -> Self
pub const fn new(unix_leap_time: i64, local_time_type_index: usize) -> Self
Construct a TZif file transition
sourcepub const fn unix_leap_time(&self) -> i64
pub const fn unix_leap_time(&self) -> i64
Returns Unix leap time
sourcepub const fn local_time_type_index(&self) -> usize
pub const fn local_time_type_index(&self) -> usize
Returns local time type index
Trait Implementations
sourceimpl Clone for Transition
impl Clone for Transition
sourcefn clone(&self) -> Transition
fn clone(&self) -> Transition
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 Transition
impl Debug for Transition
sourceimpl PartialEq<Transition> for Transition
impl PartialEq<Transition> for Transition
sourcefn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Transition) -> bool
fn ne(&self, other: &Transition) -> bool
This method tests for !=.
impl Copy for Transition
impl Eq for Transition
impl StructuralEq for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnwindSafe for Transition
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