Expand description
Data associated with a timestamp
Tuple Fields
0: T
1: Instant<C>
Implementations
Trait Implementations
sourceimpl<C: Ord + Clock, T: Ord> Ord for Stamped<C, T>
impl<C: Ord + Clock, T: Ord> Ord for Stamped<C, T>
sourceimpl<C: PartialOrd + Clock, T: PartialOrd> PartialOrd<Stamped<C, T>> for Stamped<C, T>
impl<C: PartialOrd + Clock, T: PartialOrd> PartialOrd<Stamped<C, T>> for Stamped<C, T>
sourcefn partial_cmp(&self, other: &Stamped<C, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Stamped<C, T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<C: Clock, T: Copy> Copy for Stamped<C, T>
impl<C: Eq + Clock, T: Eq> Eq for Stamped<C, T>
impl<C: Clock, T> StructuralEq for Stamped<C, T>
impl<C: Clock, T> StructuralPartialEq for Stamped<C, T>
Auto Trait Implementations
impl<C, T> RefUnwindSafe for Stamped<C, T> where
T: RefUnwindSafe,
<C as Clock>::T: RefUnwindSafe,
impl<C, T> Send for Stamped<C, T> where
T: Send,
<C as Clock>::T: Send,
impl<C, T> Sync for Stamped<C, T> where
T: Sync,
<C as Clock>::T: Sync,
impl<C, T> Unpin for Stamped<C, T> where
T: Unpin,
<C as Clock>::T: Unpin,
impl<C, T> UnwindSafe for Stamped<C, T> where
T: UnwindSafe,
<C as Clock>::T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more