Struct hifitime::leap_seconds::LeapSecond
source · #[repr(C)]pub struct LeapSecond {
pub timestamp_tai_s: f64,
pub delta_at: f64,
pub announced_by_iers: bool,
}
Expand description
A structure representing a leap second
Fields§
§timestamp_tai_s: f64
Timestamp in TAI seconds for this leap second, e.g. 2_272_060_800.0
for the first IERS leap second.
delta_at: f64
ΔAT is the accumulated time offset after this leap second has past.
announced_by_iers: bool
Whether or not this leap second was announced by the IERS.
Implementations§
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
source§fn eq(&self, other: &LeapSecond) -> bool
fn eq(&self, other: &LeapSecond) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LeapSecond
impl StructuralPartialEq for LeapSecond
Auto Trait Implementations§
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