Struct differential_dataflow::hashable::OrdWrapper [−][src]
A wrapper around hashable types that ensures an implementation of Ord that compares
hash values first.
Fields
item: T
The item, so you can grab it.
Trait Implementations
impl<T: Ord + Hashable> HashOrdered for OrdWrapper<T>[src]
impl<T: Ord + Hashable> HashOrdered for OrdWrapper<T>impl<T: Ord + Hashable + Abomonation> Abomonation for OrdWrapper<T>[src]
impl<T: Ord + Hashable + Abomonation> Abomonation for OrdWrapper<T>unsafe fn entomb<W: Write>(&self, write: &mut W) -> Result<()>[src]
unsafe fn entomb<W: Write>(&self, write: &mut W) -> Result<()>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]
unsafe fn exhume<'a, 'b>(
&'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
fn extent(&self) -> usize[src]
fn extent(&self) -> usizeReports the number of further bytes required to entomb self.
impl<T: Clone + Ord + Hashable> Clone for OrdWrapper<T>[src]
impl<T: Clone + Ord + Hashable> Clone for OrdWrapper<T>fn clone(&self) -> OrdWrapper<T>[src]
fn clone(&self) -> OrdWrapper<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: Eq + Ord + Hashable> Eq for OrdWrapper<T>[src]
impl<T: Eq + Ord + Hashable> Eq for OrdWrapper<T>impl<T: PartialEq + Ord + Hashable> PartialEq for OrdWrapper<T>[src]
impl<T: PartialEq + Ord + Hashable> PartialEq for OrdWrapper<T>fn eq(&self, other: &OrdWrapper<T>) -> bool[src]
fn eq(&self, other: &OrdWrapper<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &OrdWrapper<T>) -> bool[src]
fn ne(&self, other: &OrdWrapper<T>) -> boolThis method tests for !=.
impl<T: Debug + Ord + Hashable> Debug for OrdWrapper<T>[src]
impl<T: Debug + Ord + Hashable> Debug for OrdWrapper<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Default + Ord + Hashable> Default for OrdWrapper<T>[src]
impl<T: Default + Ord + Hashable> Default for OrdWrapper<T>fn default() -> OrdWrapper<T>[src]
fn default() -> OrdWrapper<T>Returns the "default value" for a type. Read more
impl<T: Ord + Hashable> PartialOrd for OrdWrapper<T>[src]
impl<T: Ord + Hashable> PartialOrd for OrdWrapper<T>fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T: Ord + Hashable> Ord for OrdWrapper<T>[src]
impl<T: Ord + Hashable> Ord for OrdWrapper<T>fn cmp(&self, other: &Self) -> Ordering[src]
fn cmp(&self, other: &Self) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl<T: Ord + Hashable> Hashable for OrdWrapper<T>[src]
impl<T: Ord + Hashable> Hashable for OrdWrapper<T>type Output = T::Output
The type of the output value.
fn hashed(&self) -> T::Output[src]
fn hashed(&self) -> T::OutputA well-distributed integer derived from the data.
impl<T: Ord + Hashable> Deref for OrdWrapper<T>[src]
impl<T: Ord + Hashable> Deref for OrdWrapper<T>Auto Trait Implementations
impl<T> Send for OrdWrapper<T> where
T: Send,
impl<T> Send for OrdWrapper<T> where
T: Send, impl<T> Sync for OrdWrapper<T> where
T: Sync,
impl<T> Sync for OrdWrapper<T> where
T: Sync,