Struct differential_dataflow::hashable::OrdWrapper
[−]
[src]
pub struct OrdWrapper<T: Ord + Hashable> { pub item: T, }
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 + Abomonation> Abomonation for OrdWrapper<T>[src]
unsafe fn entomb<W: Write>(&self, write: &mut W) -> Result<()>[src]
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]
&'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]
Reports the number of further bytes required to entomb self.
impl<T: Clone + Ord + Hashable> Clone for OrdWrapper<T>[src]
fn clone(&self) -> OrdWrapper<T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<T: Eq + Ord + Hashable> Eq for OrdWrapper<T>[src]
impl<T: PartialEq + Ord + Hashable> PartialEq for OrdWrapper<T>[src]
fn eq(&self, __arg_0: &OrdWrapper<T>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &OrdWrapper<T>) -> bool[src]
This method tests for !=.
impl<T: Debug + Ord + Hashable> Debug for OrdWrapper<T>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<T: Default + Ord + Hashable> Default for OrdWrapper<T>[src]
fn default() -> OrdWrapper<T>[src]
Returns the "default value" for a type. Read more
impl<T: Ord + Hashable> PartialOrd for OrdWrapper<T>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This 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]
This 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]
This 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]
This 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]
fn cmp(&self, other: &Self) -> Ordering[src]
This method returns an Ordering between self and other. Read more
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
impl<T: Ord + Hashable> Hashable for OrdWrapper<T>[src]
type Output = T::Output
The type of the output value.
fn hashed(&self) -> T::Output[src]
A well-distributed integer derived from the data.
impl<T: Ord + Hashable> Deref for OrdWrapper<T>[src]
Auto Trait Implementations
impl<T> Send for OrdWrapper<T> where
T: Send,
T: Send,
impl<T> Sync for OrdWrapper<T> where
T: Sync,
T: Sync,