[−][src]Struct binary_heap_plus::MinComparator
For T
that implements Ord
, you can use this struct to quickly
set up a min heap.
Trait Implementations
impl Copy for MinComparator
[src]
impl PartialEq<MinComparator> for MinComparator
[src]
fn eq(&self, other: &MinComparator) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for MinComparator
[src]
fn clone(&self) -> MinComparator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for MinComparator
[src]
fn default() -> MinComparator
[src]
impl Eq for MinComparator
[src]
impl Debug for MinComparator
[src]
impl<T: Ord> Compare<T, T> for MinComparator
[src]
fn compare(&self, a: &T, b: &T) -> Ordering
[src]
fn compares_lt(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is less than r
.
fn compares_le(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is less than or equal to r
.
fn compares_ge(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is greater than or equal to r
.
fn compares_gt(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is greater than r
.
fn compares_eq(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is equal to r
.
fn compares_ne(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is not equal to r
.
fn borrowing(self) -> Borrowing<Self, L, R>
[src]
Borrows the comparator's parameters before comparing them. Read more
fn rev(self) -> Rev<Self>
[src]
Reverses the ordering of the comparator. Read more
fn swap(self) -> Swap<Self>
[src]
Swaps the comparator's parameters, maintaining the underlying ordering. Read more
fn then<D>(self, then: D) -> Then<Self, D> where
D: Compare<L, R>,
[src]
D: Compare<L, R>,
Lexicographically combines the comparator with another. Read more
Auto Trait Implementations
impl Send for MinComparator
impl Sync for MinComparator
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<F, L, R> Compare<L, R> for F where
F: Fn(&L, &R) -> Ordering + ?Sized,
L: ?Sized,
R: ?Sized,
[src]
F: Fn(&L, &R) -> Ordering + ?Sized,
L: ?Sized,
R: ?Sized,
fn compare(&self, l: &L, r: &R) -> Ordering
[src]
fn compares_lt(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is less than r
.
fn compares_le(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is less than or equal to r
.
fn compares_ge(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is greater than or equal to r
.
fn compares_gt(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is greater than r
.
fn compares_eq(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is equal to r
.
fn compares_ne(&self, l: &L, r: &R) -> bool
[src]
Checks if l
is not equal to r
.
fn borrowing(self) -> Borrowing<Self, L, R>
[src]
Borrows the comparator's parameters before comparing them. Read more
fn rev(self) -> Rev<Self>
[src]
Reverses the ordering of the comparator. Read more
fn swap(self) -> Swap<Self>
[src]
Swaps the comparator's parameters, maintaining the underlying ordering. Read more
fn then<D>(self, then: D) -> Then<Self, D> where
D: Compare<L, R>,
[src]
D: Compare<L, R>,
Lexicographically combines the comparator with another. Read more