[][src]Struct st2_logformat::pair::Pair

pub struct Pair<S, T> {
    pub first: S,
    pub second: T,
}

A pair of timestamps, partially ordered by the product order.

Fields

first: S

first part of timestamp

second: T

second part of timestampe

Methods

impl<S, T> Pair<S, T>[src]

pub fn new(first: S, second: T) -> Self[src]

Create a new pair.

Trait Implementations

impl<S: Clone, T: Clone> Clone for Pair<S, T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<S: Ord, T: Ord> Ord for Pair<S, T>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<S: Default, T: Default> Default for Pair<S, T>[src]

impl<S: PartialOrd, T: PartialOrd> PartialOrd<Pair<S, T>> for Pair<S, T>[src]

impl<S: PartialEq, T: PartialEq> PartialEq<Pair<S, T>> for Pair<S, T>[src]

impl<S: Eq, T: Eq> Eq for Pair<S, T>[src]

impl<TOuter: Debug, TInner: Debug> Debug for Pair<TOuter, TInner>[src]

Debug implementation to avoid seeing fully qualified path names.

impl<S: Hash, T: Hash> Hash for Pair<S, T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<S, T> Abomonation for Pair<S, T> where
    S: Abomonation,
    T: Abomonation
[src]

impl<S: Lattice, T: Lattice> Lattice for Pair<S, T>[src]

Implement differential dataflow's Lattice trait. This extends the PartialOrder implementation with additional structure.

fn join_assign(&mut self, other: &Self)[src]

Updates self to the smallest element greater than or equal to both arguments. Read more

fn meet_assign(&mut self, other: &Self)[src]

Updates self to the largest element less than or equal to both arguments. Read more

fn advance_by(&mut self, frontier: &[Self])[src]

Advances self to the largest time indistinguishable under frontier. Read more

impl<S: Timestamp, T: Timestamp> Timestamp for Pair<S, T>[src]

Implement timely dataflow's Timestamp trait.

type Summary = ()

A type summarizing action on a timestamp along a dataflow path.

impl<S: TotalOrder, T: TotalOrder> TotalOrder for Pair<S, T>[src]

impl<S: PartialOrder, T: PartialOrder> PartialOrder for Pair<S, T>[src]

Implement timely dataflow's PartialOrder trait. Note: This is in fact a total order implementation!

fn less_than(&self, other: &Self) -> bool[src]

Returns true iff one element is strictly less than the other.

impl<S: Timestamp, T: Timestamp> Refines<()> for Pair<S, T>[src]

impl<S: Timestamp, T: Timestamp> PathSummary<Pair<S, T>> for ()[src]

Implement timely dataflow's PathSummary trait. This is preparation for the Timestamp implementation below.

Auto Trait Implementations

impl<S, T> Unpin for Pair<S, T> where
    S: Unpin,
    T: Unpin

impl<S, T> Sync for Pair<S, T> where
    S: Sync,
    T: Sync

impl<S, T> Send for Pair<S, T> where
    S: Send,
    T: Send

impl<S, T> UnwindSafe for Pair<S, T> where
    S: UnwindSafe,
    T: UnwindSafe

impl<S, T> RefUnwindSafe for Pair<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Data for T where
    T: Ord + Debug + Data
[src]

impl<T> ExchangeData for T where
    T: Ord + Debug + ExchangeData
[src]

impl<T> Hashable for T where
    T: Hash
[src]

type Output = u64

The type of the output value.

impl<T> Refines<T> for T where
    T: Timestamp
[src]

impl<T> Data for T where
    T: 'static + Clone
[src]

impl<T> Data for T where
    T: 'static + Send + Sync + Any + Abomonation

impl<T> ExchangeData for T where
    T: Data + Data, 
[src]