pub struct Product<TOuter, TInner> {
pub outer: TOuter,
pub inner: TInner,
}
Expand description
A nested pair of timestamps, one outer and one inner.
We use Product
rather than (TOuter, TInner)
so that we can derive our own PartialOrder
,
because Rust just uses the lexicographic total order.
Fields§
§outer: TOuter
Outer timestamp.
inner: TInner
Inner timestamp.
Implementations§
Trait Implementations§
source§impl<TOuter, TInner> Abomonation for Product<TOuter, TInner>where
TOuter: Abomonation,
TInner: Abomonation,
impl<TOuter, TInner> Abomonation for Product<TOuter, TInner>where TOuter: Abomonation, TInner: Abomonation,
source§impl<'de, TOuter, TInner> Deserialize<'de> for Product<TOuter, TInner>where
TOuter: Deserialize<'de>,
TInner: Deserialize<'de>,
impl<'de, TOuter, TInner> Deserialize<'de> for Product<TOuter, TInner>where TOuter: Deserialize<'de>, TInner: 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<TOuter: Ord, TInner: Ord> Ord for Product<TOuter, TInner>
impl<TOuter: Ord, TInner: Ord> Ord for Product<TOuter, TInner>
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<TOuter: PartialEq, TInner: PartialEq> PartialEq<Product<TOuter, TInner>> for Product<TOuter, TInner>
impl<TOuter: PartialEq, TInner: PartialEq> PartialEq<Product<TOuter, TInner>> for Product<TOuter, TInner>
source§impl<TOuter: PartialOrd, TInner: PartialOrd> PartialOrd<Product<TOuter, TInner>> for Product<TOuter, TInner>
impl<TOuter: PartialOrd, TInner: PartialOrd> PartialOrd<Product<TOuter, TInner>> for Product<TOuter, TInner>
1.0.0 · source§fn 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