pub struct LeapInfo {
pub offset: i64,
pub n_entries_at_or_before: usize,
pub is_leap_sec: IsLeapSec,
}Expand description
Leap-second details for an instant, returned by Dt::leap_sec
and related methods.
§See also
Fields§
§offset: i64TAI minus UTC offset, in whole seconds.
n_entries_at_or_before: usizeHow many leap-second list entries come at or before the instant
(1 on 1972-01-01).
is_leap_sec: IsLeapSecWhether the queried instant is exactly at a leap second transition point.
IsLeapSec::Add— this is the inserted leap second (23:59:60).IsLeapSec::Sub— this is a negative (removed) leap second.IsLeapSec::None— normal second (most common).
Trait Implementations§
impl Copy for LeapInfo
impl Eq for LeapInfo
impl StructuralPartialEq for LeapInfo
Auto Trait Implementations§
impl Freeze for LeapInfo
impl RefUnwindSafe for LeapInfo
impl Send for LeapInfo
impl Sync for LeapInfo
impl Unpin for LeapInfo
impl UnsafeUnpin for LeapInfo
impl UnwindSafe for LeapInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.