Struct ncollide2d::utils::SortedPair[][src]

pub struct SortedPair<T: PartialOrd>(_);

A pair of elements sorted in increasing order.

Methods

impl<T: PartialOrd> SortedPair<T>
[src]

Sorts two elements in increasing order into a new pair.

Trait Implementations

impl<T: Copy + PartialOrd> Copy for SortedPair<T>
[src]

impl<T: Clone + PartialOrd> Clone for SortedPair<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + PartialOrd> Debug for SortedPair<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq + PartialOrd> PartialEq for SortedPair<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: Eq + PartialOrd> Eq for SortedPair<T>
[src]

impl<T: PartialOrd + PartialOrd> PartialOrd for SortedPair<T>
[src]

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

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

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

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

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

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

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: Hash + PartialOrd> Hash for SortedPair<T>
[src]

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

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

impl<T: PartialOrd> Deref for SortedPair<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl<T> Send for SortedPair<T> where
    T: Send

impl<T> Sync for SortedPair<T> where
    T: Sync