pub struct TimePoint { /* private fields */ }Expand description
The common module records and containers. These explicit facade exports keep ordinary callers out of the component crate paths. One ordered position in a time series.
Implementations§
Source§impl TimePoint
impl TimePoint
pub fn new( label: impl Into<String>, duration: Option<Duration>, ) -> Result<TimePoint, Error>
Sourcepub fn from_duration_parts(
label: impl Into<String>,
seconds: u64,
nanoseconds: u32,
) -> Result<TimePoint, Error>
pub fn from_duration_parts( label: impl Into<String>, seconds: u64, nanoseconds: u32, ) -> Result<TimePoint, Error>
Construct an exact stored duration, rejecting a normalized nanosecond value instead of silently carrying into the seconds field.
pub fn label(&self) -> &str
pub const fn duration(&self) -> Option<Duration>
Trait Implementations§
impl Eq for TimePoint
impl StructuralPartialEq for TimePoint
Auto Trait Implementations§
impl Freeze for TimePoint
impl RefUnwindSafe for TimePoint
impl Send for TimePoint
impl Sync for TimePoint
impl Unpin for TimePoint
impl UnsafeUnpin for TimePoint
impl UnwindSafe for TimePoint
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more