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]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

1.3.0
[src]

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.

[src]

Dereferences the value.

Auto Trait Implementations

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

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