pub struct ClosedInterval {
pub start: u64,
pub end: u64,
}Expand description
A closed nanosecond interval, inclusive at both ends.
Fields§
§start: u64Inclusive start in nanoseconds since the Unix epoch.
end: u64Inclusive end in nanoseconds since the Unix epoch.
Implementations§
Trait Implementations§
Source§impl Clone for ClosedInterval
impl Clone for ClosedInterval
impl Copy for ClosedInterval
Source§impl Debug for ClosedInterval
impl Debug for ClosedInterval
impl Eq for ClosedInterval
Source§impl From<ClosedInterval> for (u64, u64)
impl From<ClosedInterval> for (u64, u64)
Source§fn from(interval: ClosedInterval) -> Self
fn from(interval: ClosedInterval) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClosedInterval
impl PartialEq for ClosedInterval
impl StructuralPartialEq for ClosedInterval
Auto Trait Implementations§
impl Freeze for ClosedInterval
impl RefUnwindSafe for ClosedInterval
impl Send for ClosedInterval
impl Sync for ClosedInterval
impl Unpin for ClosedInterval
impl UnsafeUnpin for ClosedInterval
impl UnwindSafe for ClosedInterval
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
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
Compare self to
key and return true if they are equal.