pub struct Reading { /* private fields */ }Expand description
A parsed moment, retaining whether digits finer than a nanosecond remain. The upper endpoint cannot be rounded without UTC correction facts.
Implementations§
Source§impl Reading
impl Reading
Sourcepub const fn start(self) -> Instant
pub const fn start(self) -> Instant
The labelled nanosecond containing the moment, rounded down.
Sourcepub const fn has_subnanosecond_remainder(self) -> bool
pub const fn has_subnanosecond_remainder(self) -> bool
Whether the represented moment is strictly later than start.
Sourcepub fn upper_bound(self, table: &LeapTable<'_>) -> Result<Instant, Uncertainty>
pub fn upper_bound(self, table: &LeapTable<'_>) -> Result<Instant, Uncertainty>
Validate the label and round upward using the supplied UTC facts.
Trait Implementations§
impl Copy for Reading
impl Eq for Reading
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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