pub struct ComparatorCDHS {}Expand description
Comparator implementing ordering Spades > Hearts > Diamonds > Clubs
Trait Implementations§
Source§impl Clone for ComparatorCDHS
impl Clone for ComparatorCDHS
Source§fn clone(&self) -> ComparatorCDHS
fn clone(&self) -> ComparatorCDHS
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Comparator<Suit> for ComparatorCDHS
impl Comparator<Suit> for ComparatorCDHS
Source§fn then_comparing<U>(self, other: U) -> ThenComparing<Self, U>where
Self: Sized,
U: Comparator<T>,
fn then_comparing<U>(self, other: U) -> ThenComparing<Self, U>where
Self: Sized,
U: Comparator<T>,
Chains two comparators. Read more
Source§fn then_comparing_by_key<F, U>(self, f: F) -> ThenComparingByKey<Self, F>
fn then_comparing_by_key<F, U>(self, f: F) -> ThenComparingByKey<Self, F>
Chains a comparator with a key function. Read more
impl Copy for ComparatorCDHS
Source§impl Default for ComparatorCDHS
impl Default for ComparatorCDHS
Source§fn default() -> ComparatorCDHS
fn default() -> ComparatorCDHS
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComparatorCDHS
impl RefUnwindSafe for ComparatorCDHS
impl Send for ComparatorCDHS
impl Sync for ComparatorCDHS
impl Unpin for ComparatorCDHS
impl UnsafeUnpin for ComparatorCDHS
impl UnwindSafe for ComparatorCDHS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more