Struct differential_dataflow::hashable::HashableWrapper [−][src]
pub struct HashableWrapper<T: Hashable> { pub item: T, // some fields omitted }
Wrapper to stash hash value with the actual value.
Fields
item: T
The item, for reference.
Trait Implementations
impl<T: Ord + Hashable> HashOrdered for HashableWrapper<T>
[src]
impl<T: Ord + Hashable> HashOrdered for HashableWrapper<T>
impl<T: Hashable + Abomonation> Abomonation for HashableWrapper<T>
[src]
impl<T: Hashable + Abomonation> Abomonation for HashableWrapper<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) -> usize
Reports the number of further bytes required to entomb self
.
impl<T: Clone + Hashable> Clone for HashableWrapper<T> where
T::Output: Clone,
[src]
impl<T: Clone + Hashable> Clone for HashableWrapper<T> where
T::Output: Clone,
fn clone(&self) -> HashableWrapper<T>
[src]
fn clone(&self) -> HashableWrapper<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: Default + Hashable> Default for HashableWrapper<T> where
T::Output: Default,
[src]
impl<T: Default + Hashable> Default for HashableWrapper<T> where
T::Output: Default,
fn default() -> HashableWrapper<T>
[src]
fn default() -> HashableWrapper<T>
Returns the "default value" for a type. Read more
impl<T: Ord + Hashable> Ord for HashableWrapper<T> where
T::Output: Ord,
[src]
impl<T: Ord + Hashable> Ord for HashableWrapper<T> where
T::Output: Ord,
fn cmp(&self, other: &HashableWrapper<T>) -> Ordering
[src]
fn cmp(&self, other: &HashableWrapper<T>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<T: PartialOrd + Hashable> PartialOrd for HashableWrapper<T> where
T::Output: PartialOrd,
[src]
impl<T: PartialOrd + Hashable> PartialOrd for HashableWrapper<T> where
T::Output: PartialOrd,
fn partial_cmp(&self, other: &HashableWrapper<T>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &HashableWrapper<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &HashableWrapper<T>) -> bool
[src]
fn lt(&self, other: &HashableWrapper<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &HashableWrapper<T>) -> bool
[src]
fn le(&self, other: &HashableWrapper<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &HashableWrapper<T>) -> bool
[src]
fn gt(&self, other: &HashableWrapper<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &HashableWrapper<T>) -> bool
[src]
fn ge(&self, other: &HashableWrapper<T>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Eq + Hashable> Eq for HashableWrapper<T> where
T::Output: Eq,
[src]
impl<T: Eq + Hashable> Eq for HashableWrapper<T> where
T::Output: Eq,
impl<T: PartialEq + Hashable> PartialEq for HashableWrapper<T> where
T::Output: PartialEq,
[src]
impl<T: PartialEq + Hashable> PartialEq for HashableWrapper<T> where
T::Output: PartialEq,
fn eq(&self, other: &HashableWrapper<T>) -> bool
[src]
fn eq(&self, other: &HashableWrapper<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &HashableWrapper<T>) -> bool
[src]
fn ne(&self, other: &HashableWrapper<T>) -> bool
This method tests for !=
.
impl<T: Debug + Hashable> Debug for HashableWrapper<T> where
T::Output: Debug,
[src]
impl<T: Debug + Hashable> Debug for HashableWrapper<T> where
T::Output: Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Copy + Hashable> Copy for HashableWrapper<T> where
T::Output: Copy,
[src]
impl<T: Copy + Hashable> Copy for HashableWrapper<T> where
T::Output: Copy,
impl<T: Hashable> Hashable for HashableWrapper<T>
[src]
impl<T: Hashable> Hashable for HashableWrapper<T>
type Output = T::Output
The type of the output value.
fn hashed(&self) -> T::Output
[src]
fn hashed(&self) -> T::Output
A well-distributed integer derived from the data.
impl<T: Hashable> Deref for HashableWrapper<T>
[src]
impl<T: Hashable> Deref for HashableWrapper<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T: Hashable> From<T> for HashableWrapper<T>
[src]
impl<T: Hashable> From<T> for HashableWrapper<T>
fn from(item: T) -> HashableWrapper<T>
[src]
fn from(item: T) -> HashableWrapper<T>
Performs the conversion.