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

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

A pair of elements sorted in increasing order.

Methods

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

pub fn new(element1: T, element2: T) -> Self[src]

Sorts two elements in increasing order into a new pair.

Trait Implementations

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

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

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

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

type Target = (T, T)

The resulting type after dereferencing.

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<T> Slottable for T where
    T: Copy
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,