Struct dotreds_binary_heap_plus::MinComparator
source · [−]pub struct MinComparator;Trait Implementations
sourceimpl Clone for MinComparator
impl Clone for MinComparator
sourcefn clone(&self) -> MinComparator
fn clone(&self) -> MinComparator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Ord> Compare<T, T> for MinComparator
impl<T: Ord> Compare<T, T> for MinComparator
sourcefn 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. Read more
sourcefn compares_lt(&self, l: &L, r: &R) -> bool
fn compares_lt(&self, l: &L, r: &R) -> bool
Checks if l is less than r.
sourcefn compares_le(&self, l: &L, r: &R) -> bool
fn compares_le(&self, l: &L, r: &R) -> bool
Checks if l is less than or equal to r.
sourcefn compares_ge(&self, l: &L, r: &R) -> bool
fn compares_ge(&self, l: &L, r: &R) -> bool
Checks if l is greater than or equal to r.
sourcefn compares_gt(&self, l: &L, r: &R) -> bool
fn compares_gt(&self, l: &L, r: &R) -> bool
Checks if l is greater than r.
sourcefn compares_eq(&self, l: &L, r: &R) -> bool
fn compares_eq(&self, l: &L, r: &R) -> bool
Checks if l is equal to r.
sourcefn compares_ne(&self, l: &L, r: &R) -> bool
fn compares_ne(&self, l: &L, r: &R) -> bool
Checks if l is not equal to r.
sourcefn borrowing(self) -> Borrowing<Self, L, R>
fn borrowing(self) -> Borrowing<Self, L, R>
Borrows the comparator’s parameters before comparing them. Read more
sourceimpl Debug for MinComparator
impl Debug for MinComparator
sourceimpl Default for MinComparator
impl Default for MinComparator
sourcefn default() -> MinComparator
fn default() -> MinComparator
Returns the “default value” for a type. Read more
sourceimpl PartialEq<MinComparator> for MinComparator
impl PartialEq<MinComparator> for MinComparator
impl Copy for MinComparator
impl Eq for MinComparator
impl StructuralEq for MinComparator
impl StructuralPartialEq for MinComparator
Auto Trait Implementations
impl RefUnwindSafe for MinComparator
impl Send for MinComparator
impl Sync for MinComparator
impl Unpin for MinComparator
impl UnwindSafe for MinComparator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more