pub struct Time128 { /* private fields */ }Expand description
128 Bit Fixed Precision Time Format, storing 64 bits of Seconds, and 64 bits
of Fractional Seconds. This is the equivalent of Q64.64, and is semantically
equivalent to the NTP Datestamp Format if using the epoch::NTP_EPOCH.
The 64-bit seconds field can resolve 584 million years, and the 64-bit fractional field can resolve down to 54 zepto-seconds (5.4e-20).
580 million years ago, multicellular life started. 580 million years from, now, the average temperature of the Earth will be 25C higher - 40C.
The raw value is 128 bits wide, if you take the middle 64 bits, this is
identical to a Time64 - (lower 32 of seconds, upper 32 of
fractional_seconds).
Implementations§
Trait Implementations§
source§impl Ord for Time128
impl Ord for Time128
source§impl PartialEq for Time128
impl PartialEq for Time128
source§impl PartialOrd for Time128
impl PartialOrd for Time128
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Time128
impl Eq for Time128
impl StructuralEq for Time128
impl StructuralPartialEq for Time128
Auto Trait Implementations§
impl RefUnwindSafe for Time128
impl Send for Time128
impl Sync for Time128
impl Unpin for Time128
impl UnwindSafe for Time128
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