Struct differential_dataflow::hashable::OrdWrapper
source · Expand description
A wrapper around hashable types that ensures an implementation of Ord that compares
hash values first.
Fields
item: TThe item, so you can grab it.
Trait Implementations
sourceimpl<T: Ord + Hashable + Abomonation> Abomonation for OrdWrapper<T>
impl<T: Ord + Hashable + Abomonation> Abomonation for OrdWrapper<T>
sourceunsafe fn entomb<W: Write>(&self, write: &mut W) -> Result<()>
unsafe fn entomb<W: Write>(&self, write: &mut W) -> Result<()>
Write any additional information about
&self beyond its binary representation. Read moresourceimpl<T: Clone + Ord + Hashable> Clone for OrdWrapper<T>
impl<T: Clone + Ord + Hashable> Clone for OrdWrapper<T>
sourcefn clone(&self) -> OrdWrapper<T>
fn clone(&self) -> OrdWrapper<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T: Default + Ord + Hashable> Default for OrdWrapper<T>
impl<T: Default + Ord + Hashable> Default for OrdWrapper<T>
sourcefn default() -> OrdWrapper<T>
fn default() -> OrdWrapper<T>
Returns the “default value” for a type. Read more
sourceimpl<T: Ord + Hashable> Deref for OrdWrapper<T>
impl<T: Ord + Hashable> Deref for OrdWrapper<T>
sourceimpl<T: Ord + Hashable> Hashable for OrdWrapper<T>
impl<T: Ord + Hashable> Hashable for OrdWrapper<T>
sourceimpl<T: Ord + Hashable> Ord for OrdWrapper<T>
impl<T: Ord + Hashable> Ord for OrdWrapper<T>
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<T: PartialEq + Ord + Hashable> PartialEq<OrdWrapper<T>> for OrdWrapper<T>
impl<T: PartialEq + Ord + Hashable> PartialEq<OrdWrapper<T>> for OrdWrapper<T>
sourcefn eq(&self, other: &OrdWrapper<T>) -> bool
fn eq(&self, other: &OrdWrapper<T>) -> bool
sourceimpl<T: Ord + Hashable> PartialOrd<OrdWrapper<T>> for OrdWrapper<T>
impl<T: Ord + Hashable> PartialOrd<OrdWrapper<T>> for OrdWrapper<T>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> 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<T: Eq + Ord + Hashable> Eq for OrdWrapper<T>
impl<T: Ord + Hashable> HashOrdered for OrdWrapper<T>
impl<T: Ord + Hashable> StructuralEq for OrdWrapper<T>
impl<T: Ord + Hashable> StructuralPartialEq for OrdWrapper<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for OrdWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for OrdWrapper<T>where
T: Send,
impl<T> Sync for OrdWrapper<T>where
T: Sync,
impl<T> Unpin for OrdWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for OrdWrapper<T>where
T: 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