pub struct MaxComparator;
Trait Implementations§
Source§impl Clone for MaxComparator
impl Clone for MaxComparator
Source§fn clone(&self) -> MaxComparator
fn clone(&self) -> MaxComparator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Ord> Compare<T> for MaxComparator
impl<T: Ord> Compare<T> for MaxComparator
Source§fn compare(&self, a: &T, b: &T) -> Ordering
fn compare(&self, a: &T, b: &T) -> Ordering
Compares two values, returning
Less
, Equal
, or Greater
if l
is less
than, equal to, or greater than r
, respectively.Source§fn borrowing(self) -> Borrowing<Self, L, R>where
Self: Sized,
fn borrowing(self) -> Borrowing<Self, L, R>where
Self: Sized,
Borrows the comparator’s parameters before comparing them. Read more
Source§fn rev(self) -> Rev<Self>where
Self: Sized,
fn rev(self) -> Rev<Self>where
Self: Sized,
Reverses the ordering of the comparator. Read more
Source§impl Debug for MaxComparator
impl Debug for MaxComparator
Source§impl Default for MaxComparator
impl Default for MaxComparator
Source§fn default() -> MaxComparator
fn default() -> MaxComparator
Returns the “default value” for a type. Read more
Source§impl PartialEq for MaxComparator
impl PartialEq for MaxComparator
impl Copy for MaxComparator
impl Eq for MaxComparator
impl StructuralPartialEq for MaxComparator
Auto Trait Implementations§
impl Freeze for MaxComparator
impl RefUnwindSafe for MaxComparator
impl Send for MaxComparator
impl Sync for MaxComparator
impl Unpin for MaxComparator
impl UnwindSafe for MaxComparator
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