pub struct LeapTable {
pub entries: Vec<LeapSecond>,
pub expires: Option<i64>,
}Expand description
A parsed leap-second table: the entries plus an optional table-expiry instant.
Fields§
§entries: Vec<LeapSecond>Leap entries, kept sorted by trans (insertion-sorted, mirroring zic’s leapadd).
expires: Option<i64>The Expires instant (seconds since 1970), if any. At most one Expires line is permitted
(a second is a parse error, matching reference zic).
Trait Implementations§
impl Eq for LeapTable
impl StructuralPartialEq for LeapTable
Auto Trait Implementations§
impl Freeze for LeapTable
impl RefUnwindSafe for LeapTable
impl Send for LeapTable
impl Sync for LeapTable
impl Unpin for LeapTable
impl UnsafeUnpin for LeapTable
impl UnwindSafe for LeapTable
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