Struct ncollide_utils::HashablePartialEq [] [src]

pub struct HashablePartialEq<T> { /* fields omitted */ }

A structure that implements Eq and is hashable even if the wrapped data implements only PartialEq.

Methods

impl<T> HashablePartialEq<T>
[src]

Creates a new HashablePartialEq. This is unsafe because you must be sure that you really want to transform the wrapped object's partial equality to an equivalence relation.

Gets the wrapped value.

Trait Implementations

impl<T: PartialEq> PartialEq for HashablePartialEq<T>
[src]

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

This method tests for !=.

impl<T: Encodable> Encodable for HashablePartialEq<T>
[src]

Serialize a value using an Encoder.

impl<T: Decodable> Decodable for HashablePartialEq<T>
[src]

Deserialize a value using a Decoder.

impl<T: Clone> Clone for HashablePartialEq<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for HashablePartialEq<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> Eq for HashablePartialEq<T>
[src]

impl<T: AsBytes> Hash for HashablePartialEq<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more