Struct timely::progress::nested::product::Product
[−]
[src]
pub struct Product<TOuter, TInner> { pub outer: TOuter, pub inner: TInner, }
A nested pair of timestamps, one outer and one inner.
We use Product
rather than (TOuter, TInner)
so that we can derive our own PartialOrd
,
because Rust just uses the lexicographic total order.
Fields
outer: TOuter
Outer timestamp.
inner: TInner
Inner timestamp.
Methods
impl<TOuter, TInner> Product<TOuter, TInner>
[src]
fn new(outer: TOuter, inner: TInner) -> Product<TOuter, TInner>
[src]
Creates a new product from outer and inner coordinates.
Trait Implementations
impl<TOuter: Copy, TInner: Copy> Copy for Product<TOuter, TInner>
[src]
impl<TOuter: Clone, TInner: Clone> Clone for Product<TOuter, TInner>
[src]
fn clone(&self) -> Product<TOuter, TInner>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<TOuter: Hash, TInner: Hash> Hash for Product<TOuter, TInner>
[src]
fn hash<__HTOuterTInner: Hasher>(&self, __arg_0: &mut __HTOuterTInner)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<TOuter: Eq, TInner: Eq> Eq for Product<TOuter, TInner>
[src]
impl<TOuter: PartialEq, TInner: PartialEq> PartialEq for Product<TOuter, TInner>
[src]
fn eq(&self, __arg_0: &Product<TOuter, TInner>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Product<TOuter, TInner>) -> bool
[src]
This method tests for !=
.
impl<TOuter: Default, TInner: Default> Default for Product<TOuter, TInner>
[src]
impl<TOuter: Ord, TInner: Ord> Ord for Product<TOuter, TInner>
[src]
fn cmp(&self, __arg_0: &Product<TOuter, TInner>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl<TOuter: PartialOrd, TInner: PartialOrd> PartialOrd for Product<TOuter, TInner>
[src]
fn partial_cmp(&self, __arg_0: &Product<TOuter, TInner>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Product<TOuter, TInner>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Product<TOuter, TInner>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Product<TOuter, TInner>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Product<TOuter, TInner>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<TOuter: Debug, TInner: Debug> Debug for Product<TOuter, TInner>
[src]
Debug implementation to avoid seeing fully qualified path names.
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<TOuter: PartialOrder, TInner: PartialOrder> PartialOrder for Product<TOuter, TInner>
[src]
fn less_equal(&self, other: &Self) -> bool
[src]
Returns true iff one element is less than or equal to the other.
fn less_than(&self, other: &Self) -> bool
[src]
Returns true iff one element is strictly less than the other.
impl<TOuter: Timestamp, TInner: Timestamp> Timestamp for Product<TOuter, TInner>
[src]
type Summary = Summary<TOuter::Summary, TInner::Summary>
A type summarizing action on a timestamp along a dataflow path.
impl<TOuter: Abomonation, TInner: Abomonation> Abomonation for Product<TOuter, TInner>
[src]
unsafe fn embalm(&mut self)
[src]
Perform any final edits before committing &mut self
. Importantly, this method should only manipulate the fields of self
; any owned memory may not be valid. Read more
unsafe fn entomb(&self, bytes: &mut Vec<u8>)
[src]
Write any additional information about &self
beyond its binary representation. Read more
unsafe fn exhume<'a, 'b>(
&'a mut self,
bytes: &'b mut [u8]
) -> Option<&'b mut [u8]>
[src]
&'a mut self,
bytes: &'b mut [u8]
) -> Option<&'b mut [u8]>
Recover any information for &mut self
not evident from its binary representation. Read more
impl<T1: Empty, T2: Empty> Empty for Product<T1, T2>
[src]
impl<T1, T2> TotalOrder for Product<T1, T2> where
T1: Empty,
T2: TotalOrder,
[src]
T1: Empty,
T2: TotalOrder,