Struct differential_dataflow::hashable::UnsignedWrapper
[−]
[src]
pub struct UnsignedWrapper<T: Unsigned + Copy> { pub item: T, }
A wrapper around an unsigned integer, providing hashed
as the value itself.
Fields
item: T
The item.
Trait Implementations
impl<T: Unsigned + Copy> HashOrdered for UnsignedWrapper<T>
[src]
impl<T: Unsigned + Copy + Hashable + Abomonation> Abomonation for UnsignedWrapper<T>
[src]
unsafe fn entomb(&self, _writer: &mut Vec<u8>)
[src]
Write any additional information about &self
beyond its binary representation. Read more
unsafe fn embalm(&mut self)
[src]
Perform any final edits before committing &mut self
. Importantly, this method should only manipulate the fields of self
; any owned memory may not be valid. 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
impl<T: Clone + Unsigned + Copy> Clone for UnsignedWrapper<T>
[src]
fn clone(&self) -> UnsignedWrapper<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: Ord + Unsigned + Copy> Ord for UnsignedWrapper<T>
[src]
fn cmp(&self, __arg_0: &UnsignedWrapper<T>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl<T: PartialOrd + Unsigned + Copy> PartialOrd for UnsignedWrapper<T>
[src]
fn partial_cmp(&self, __arg_0: &UnsignedWrapper<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &UnsignedWrapper<T>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &UnsignedWrapper<T>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &UnsignedWrapper<T>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &UnsignedWrapper<T>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Eq + Unsigned + Copy> Eq for UnsignedWrapper<T>
[src]
impl<T: PartialEq + Unsigned + Copy> PartialEq for UnsignedWrapper<T>
[src]
fn eq(&self, __arg_0: &UnsignedWrapper<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: &UnsignedWrapper<T>) -> bool
[src]
This method tests for !=
.
impl<T: Default + Unsigned + Copy> Default for UnsignedWrapper<T>
[src]
fn default() -> UnsignedWrapper<T>
[src]
Returns the "default value" for a type. Read more
impl<T: Debug + Unsigned + Copy> Debug for UnsignedWrapper<T>
[src]
impl<T: Copy + Unsigned + Copy> Copy for UnsignedWrapper<T>
[src]
impl<T: Unsigned + Copy> Hashable for UnsignedWrapper<T>
[src]
type Output = T
The type of the output value.
fn hashed(&self) -> Self::Output
[src]
A well-distributed integer derived from the data.
impl<T: Unsigned + Copy> Deref for UnsignedWrapper<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.