pub struct Pair<S, T> {
pub first: S,
pub second: T,
}
Expand description
A pair of timestamps, partially ordered by the product order.
Fields§
§first: S
First timestamp coordinate, e.g. system time.
second: T
Second timestamp coordinate, e.g. event time.
Implementations§
Trait Implementations§
Source§impl<TOuter: Debug, TInner: Debug> Debug for Pair<TOuter, TInner>
Debug implementation to avoid seeing fully qualified path names.
impl<TOuter: Debug, TInner: Debug> Debug for Pair<TOuter, TInner>
Debug implementation to avoid seeing fully qualified path names.
Source§impl<'de, S, T> Deserialize<'de> for Pair<S, T>where
S: Deserialize<'de>,
T: Deserialize<'de>,
impl<'de, S, T> Deserialize<'de> for Pair<S, T>where
S: Deserialize<'de>,
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S: Lattice, T: Lattice> Lattice for Pair<S, T>
impl<S: Lattice, T: Lattice> Lattice for Pair<S, T>
Source§fn join(&self, other: &Self) -> Self
fn join(&self, other: &Self) -> Self
The smallest element greater than or equal to both arguments. Read more
Source§fn meet(&self, other: &Self) -> Self
fn meet(&self, other: &Self) -> Self
The largest element less than or equal to both arguments. Read more
Source§fn join_assign(&mut self, other: &Self)where
Self: Sized,
fn join_assign(&mut self, other: &Self)where
Self: Sized,
Updates
self
to the smallest element greater than or equal to both arguments. Read moreSource§fn meet_assign(&mut self, other: &Self)where
Self: Sized,
fn meet_assign(&mut self, other: &Self)where
Self: Sized,
Updates
self
to the largest element less than or equal to both arguments. Read moreSource§fn advance_by(&mut self, frontier: &[Self])where
Self: Sized,
fn advance_by(&mut self, frontier: &[Self])where
Self: Sized,
Advances self to the largest time indistinguishable under
frontier
. Read moreSource§impl<S: Ord, T: Ord> Ord for Pair<S, T>
impl<S: Ord, T: Ord> Ord for Pair<S, T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: PartialOrd, T: PartialOrd> PartialOrd for Pair<S, T>
impl<S: PartialOrd, T: PartialOrd> PartialOrd for Pair<S, T>
Source§impl<S: PartialOrder, T: PartialOrder> PartialOrder for Pair<S, T>
impl<S: PartialOrder, T: PartialOrder> PartialOrder for Pair<S, T>
impl<S: Eq, T: Eq> Eq for Pair<S, T>
impl<S, T> StructuralPartialEq for Pair<S, T>
Auto Trait Implementations§
impl<S, T> Freeze for Pair<S, T>
impl<S, T> RefUnwindSafe for Pair<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Pair<S, T>
impl<S, T> Sync for Pair<S, T>
impl<S, T> Unpin for Pair<S, T>
impl<S, T> UnwindSafe for Pair<S, T>where
S: UnwindSafe,
T: UnwindSafe,
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