[−][src]Struct binary_heap_plus::KeyComparator
The comparator ordered by key
Trait Implementations
impl<F: Clone> Clone for KeyComparator<F>
[src]
fn clone(&self) -> KeyComparator<F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Ord, T, F> Compare<T, T> for KeyComparator<F> where
F: Fn(&T) -> K,
[src]
F: Fn(&T) -> K,
fn compare(&self, a: &T, b: &T) -> Ordering
[src]
fn compares_lt(&self, l: &L, r: &R) -> bool
[src]
fn compares_le(&self, l: &L, r: &R) -> bool
[src]
fn compares_ge(&self, l: &L, r: &R) -> bool
[src]
fn compares_gt(&self, l: &L, r: &R) -> bool
[src]
fn compares_eq(&self, l: &L, r: &R) -> bool
[src]
fn compares_ne(&self, l: &L, r: &R) -> bool
[src]
fn borrowing(self) -> Borrowing<Self, L, R>
[src]
fn rev(self) -> Rev<Self>
[src]
fn swap(self) -> Swap<Self>
[src]
fn then<D>(self, then: D) -> Then<Self, D> where
D: Compare<L, R>,
[src]
D: Compare<L, R>,
impl<F: Copy> Copy for KeyComparator<F>
[src]
impl<F: Debug> Debug for KeyComparator<F>
[src]
impl<F: Default> Default for KeyComparator<F>
[src]
fn default() -> KeyComparator<F>
[src]
impl<F: Eq> Eq for KeyComparator<F>
[src]
impl<F: PartialEq> PartialEq<KeyComparator<F>> for KeyComparator<F>
[src]
fn eq(&self, other: &KeyComparator<F>) -> bool
[src]
fn ne(&self, other: &KeyComparator<F>) -> bool
[src]
impl<F> StructuralEq for KeyComparator<F>
[src]
impl<F> StructuralPartialEq for KeyComparator<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for KeyComparator<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for KeyComparator<F> where
F: Send,
F: Send,
impl<F> Sync for KeyComparator<F> where
F: Sync,
F: Sync,
impl<F> Unpin for KeyComparator<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for KeyComparator<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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]
fn compares_le(&self, l: &L, r: &R) -> bool
[src]
fn compares_ge(&self, l: &L, r: &R) -> bool
[src]
fn compares_gt(&self, l: &L, r: &R) -> bool
[src]
fn compares_eq(&self, l: &L, r: &R) -> bool
[src]
fn compares_ne(&self, l: &L, r: &R) -> bool
[src]
fn borrowing(self) -> Borrowing<Self, L, R>
[src]
fn rev(self) -> Rev<Self>
[src]
fn swap(self) -> Swap<Self>
[src]
fn then<D>(self, then: D) -> Then<Self, D> where
D: Compare<L, R>,
[src]
D: Compare<L, R>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,