Struct differential_dataflow::difference::DiffPair [] [src]

pub struct DiffPair<R1: Diff, R2: Diff> {
    pub element1: R1,
    pub element2: R2,
}

The difference defined by a pair of difference elements.

This type is essentially a "pair", though in Rust the tuple types do not derive the numeric traits we require, and so we need to emulate the types ourselves. In the interest of ergonomics, we may eventually replace the numeric traits with our own, so that we can implement them for tuples and allow users to ignore details like these.

Fields

The first element in the pair.

The second element in the pair.

Methods

impl<R1: Diff, R2: Diff> DiffPair<R1, R2>
[src]

[src]

Creates a new Diff pair from two elements.

Trait Implementations

impl<R1: Copy + Diff, R2: Copy + Diff> Copy for DiffPair<R1, R2>
[src]

impl<R1: Ord + Diff, R2: Ord + Diff> Ord for DiffPair<R1, R2>
[src]

[src]

This method returns an Ordering between self and other. Read more

[src]

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

Compares and returns the maximum of two values. Read more

[src]

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

Compares and returns the minimum of two values. Read more

impl<R1: PartialOrd + Diff, R2: PartialOrd + Diff> PartialOrd for DiffPair<R1, R2>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<R1: Eq + Diff, R2: Eq + Diff> Eq for DiffPair<R1, R2>
[src]

impl<R1: PartialEq + Diff, R2: PartialEq + Diff> PartialEq for DiffPair<R1, R2>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<R1: Debug + Diff, R2: Debug + Diff> Debug for DiffPair<R1, R2>
[src]

[src]

Formats the value using the given formatter.

impl<R1: Clone + Diff, R2: Clone + Diff> Clone for DiffPair<R1, R2>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<R1: Diff, R2: Diff> Diff for DiffPair<R1, R2>
[src]

[src]

Returns true if the element is the additive identity. Read more

[src]

The additive identity. Read more

impl<R1: Diff, R2: Diff> Add<DiffPair<R1, R2>> for DiffPair<R1, R2>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<R1: Diff, R2: Diff> Sub<DiffPair<R1, R2>> for DiffPair<R1, R2>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<R1: Diff, R2: Diff> Neg for DiffPair<R1, R2>
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<T: Copy, R1: Diff + Mul<T>, R2: Diff + Mul<T>> Mul<T> for DiffPair<R1, R2> where
    <R1 as Mul<T>>::Output: Diff,
    <R2 as Mul<T>>::Output: Diff
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<R1: Diff, R2: Diff> Abomonation for DiffPair<R1, R2>
[src]

[src]

Write any additional information about &self beyond its binary representation. Read more

[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

[src]

Recover any information for &mut self not evident from its binary representation. Read more