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

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]

[src]

Write any additional information about &self beyond its binary representation. Read more

[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

[src]

Recover any information for &mut self not evident from its binary representation. Read more

impl<T: Clone + Ord + Hashable> Clone for OrdWrapper<T>
[src]

[src]

Returns a copy of the value. Read more

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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Debug + Ord + Hashable> Debug for OrdWrapper<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Default + Ord + Hashable> Default for OrdWrapper<T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: Ord + Hashable> PartialOrd for OrdWrapper<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.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]

[src]

This method returns an Ordering between self and other. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl<T: Ord + Hashable> Hashable for OrdWrapper<T>
[src]

The type of the output value.

[src]

A well-distributed integer derived from the data.

impl<T: Ord + Hashable> Deref for OrdWrapper<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.