pub struct LeapSecond { /* private fields */ }
Expand description
Leap second of a TZif file
Implementations§
Source§impl LeapSecond
impl LeapSecond
Sourcepub const fn new(unix_leap_time: i64, correction: i32) -> Self
pub const fn new(unix_leap_time: i64, correction: i32) -> Self
Construct a TZif file leap second
Sourcepub const fn unix_leap_time(&self) -> i64
pub const fn unix_leap_time(&self) -> i64
Returns Unix leap time
Sourcepub const fn correction(&self) -> i32
pub const fn correction(&self) -> i32
Returns leap second correction
Trait Implementations§
Source§impl Clone for LeapSecond
impl Clone for LeapSecond
Source§fn clone(&self) -> LeapSecond
fn clone(&self) -> LeapSecond
Returns a copy of the value. Read more
1.0.0 · 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 LeapSecond
impl Debug for LeapSecond
Source§impl PartialEq for LeapSecond
impl PartialEq for LeapSecond
impl Copy for LeapSecond
impl Eq for LeapSecond
impl StructuralPartialEq for LeapSecond
Auto Trait Implementations§
impl Freeze for LeapSecond
impl RefUnwindSafe for LeapSecond
impl Send for LeapSecond
impl Sync for LeapSecond
impl Unpin for LeapSecond
impl UnwindSafe for LeapSecond
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