Struct differential_dataflow::difference::DiffPair
source · pub struct DiffPair<R1, R2> {
pub element1: R1,
pub element2: R2,
}Expand description
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
element1: R1The first element in the pair.
element2: R2The second element in the pair.
Implementations
Trait Implementations
sourceimpl<R1, R2> Abomonation for DiffPair<R1, R2>where
R1: Abomonation,
R2: Abomonation,
impl<R1, R2> Abomonation for DiffPair<R1, R2>where
R1: Abomonation,
R2: Abomonation,
sourceimpl<'de, R1, R2> Deserialize<'de> for DiffPair<R1, R2>where
R1: Deserialize<'de>,
R2: Deserialize<'de>,
impl<'de, R1, R2> Deserialize<'de> for DiffPair<R1, R2>where
R1: Deserialize<'de>,
R2: Deserialize<'de>,
sourcefn 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
sourceimpl<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,
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,
sourceimpl<R1: Ord, R2: Ord> Ord for DiffPair<R1, R2>
impl<R1: Ord, R2: Ord> Ord for DiffPair<R1, R2>
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<R1: PartialEq, R2: PartialEq> PartialEq<DiffPair<R1, R2>> for DiffPair<R1, R2>
impl<R1: PartialEq, R2: PartialEq> PartialEq<DiffPair<R1, R2>> for DiffPair<R1, R2>
sourceimpl<R1: PartialOrd, R2: PartialOrd> PartialOrd<DiffPair<R1, R2>> for DiffPair<R1, R2>
impl<R1: PartialOrd, R2: PartialOrd> PartialOrd<DiffPair<R1, R2>> for DiffPair<R1, R2>
sourcefn partial_cmp(&self, other: &DiffPair<R1, R2>) -> Option<Ordering>
fn partial_cmp(&self, other: &DiffPair<R1, R2>) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl<R1: Copy, R2: Copy> Copy for DiffPair<R1, R2>
impl<R1: Eq, R2: Eq> Eq for DiffPair<R1, R2>
impl<R1, R2> StructuralEq for DiffPair<R1, R2>
impl<R1, R2> StructuralPartialEq for DiffPair<R1, R2>
Auto Trait Implementations
impl<R1, R2> RefUnwindSafe for DiffPair<R1, R2>where
R1: RefUnwindSafe,
R2: RefUnwindSafe,
impl<R1, R2> Send for DiffPair<R1, R2>where
R1: Send,
R2: Send,
impl<R1, R2> Sync for DiffPair<R1, R2>where
R1: Sync,
R2: Sync,
impl<R1, R2> Unpin for DiffPair<R1, R2>where
R1: Unpin,
R2: Unpin,
impl<R1, R2> UnwindSafe for DiffPair<R1, R2>where
R1: UnwindSafe,
R2: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more