Struct compare::Then [] [src]

pub struct Then<C, D>(_, _);

A comparator that lexicographically combines two others.

See Compare::then for an example.

Trait Implementations

impl<C, D, L: ?Sized, R: ?Sized> Compare<L, R> for Then<C, D> where C: Compare<L, R>, D: Compare<L, R>

fn compare(&self, l: &L, r: &R) -> Ordering

fn compares_lt(&self, l: &L, r: &R) -> bool

fn compares_le(&self, l: &L, r: &R) -> bool

fn compares_ge(&self, l: &L, r: &R) -> bool

fn compares_gt(&self, l: &L, r: &R) -> bool

fn compares_eq(&self, l: &L, r: &R) -> bool

fn compares_ne(&self, l: &L, r: &R) -> bool

fn borrowing(self) -> Borrowing<Self, L, R> where Self: Sized

fn rev(self) -> Rev<Self> where Self: Sized

fn swap(self) -> Swap<Self> where Self: Sized

fn then<D>(self, then: D) -> Then<Self, D> where D: Compare<L, R>, Self: Sized

Derived Implementations

impl<C: Debug, D: Debug> Debug for Then<C, D>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<C: Eq, D: Eq> Eq for Then<C, D>

impl<C: PartialEq, D: PartialEq> PartialEq for Then<C, D>

fn eq(&self, __arg_0: &Then<C, D>) -> bool

fn ne(&self, __arg_0: &Then<C, D>) -> bool

impl<C: Default, D: Default> Default for Then<C, D>

fn default() -> Then<C, D>

impl<C: Copy, D: Copy> Copy for Then<C, D>

impl<C: Clone, D: Clone> Clone for Then<C, D>

fn clone(&self) -> Then<C, D>

1.0.0fn clone_from(&mut self, source: &Self)