pub struct LeapEntry {
pub tai_nanos: u64,
pub tai_minus_utc: i32,
}Expand description
One leap-second table entry.
Starting from tai_minus_utc (internal TAI nanoseconds), TAI - UTC = tai_minus_utc seconds.
Strict contract: the table must be sorted by tai_nanos in ascending order.
Fields§
§tai_nanos: u64Internal TAI nanoseconds (inclusive lower bound).
tai_minus_utc: i32TAI - UTC in whole seconds, valid from this moment onward.
Implementations§
Trait Implementations§
impl Copy for LeapEntry
impl Eq for LeapEntry
impl StructuralPartialEq for LeapEntry
Auto Trait Implementations§
impl Freeze for LeapEntry
impl RefUnwindSafe for LeapEntry
impl Send for LeapEntry
impl Sync for LeapEntry
impl Unpin for LeapEntry
impl UnsafeUnpin for LeapEntry
impl UnwindSafe for LeapEntry
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