pub struct DefaultComparator;
Expand description
A Comparator
which uses keys’ Ord
implementations.
Trait Implementations§
Source§impl Clone for DefaultComparator
impl Clone for DefaultComparator
Source§fn clone(&self) -> DefaultComparator
fn clone(&self) -> DefaultComparator
Returns a duplicate 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<Key: ?Sized + Ord> Comparator<Key> for DefaultComparator
impl<Key: ?Sized + Ord> Comparator<Key> for DefaultComparator
Source§impl Debug for DefaultComparator
impl Debug for DefaultComparator
Source§impl Default for DefaultComparator
impl Default for DefaultComparator
Source§fn default() -> DefaultComparator
fn default() -> DefaultComparator
Returns the “default value” for a type. Read more
Source§impl Hash for DefaultComparator
impl Hash for DefaultComparator
Source§impl IndependentClone<NearInstant> for DefaultComparator
impl IndependentClone<NearInstant> for DefaultComparator
Source§fn independent_clone(&self) -> Self
fn independent_clone(&self) -> Self
Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§impl MirroredClone<NearInstant> for DefaultComparator
impl MirroredClone<NearInstant> for DefaultComparator
Source§fn mirrored_clone(&self) -> Self
fn mirrored_clone(&self) -> Self
Get a clone that shares all semantically-important mutable state with its source. Read more
Source§impl Ord for DefaultComparator
impl Ord for DefaultComparator
Source§fn cmp(&self, other: &DefaultComparator) -> Ordering
fn cmp(&self, other: &DefaultComparator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DefaultComparator
impl PartialEq for DefaultComparator
Source§impl PartialOrd for DefaultComparator
impl PartialOrd for DefaultComparator
impl Copy for DefaultComparator
impl Eq for DefaultComparator
impl NonRecursive for DefaultComparator
impl StructuralPartialEq for DefaultComparator
Auto Trait Implementations§
impl Freeze for DefaultComparator
impl RefUnwindSafe for DefaultComparator
impl Send for DefaultComparator
impl Sync for DefaultComparator
impl Unpin for DefaultComparator
impl UnwindSafe for DefaultComparator
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> FragileContainer<T> for Twhere
T: ?Sized,
impl<T> FragileContainer<T> for Twhere
T: ?Sized,
Source§fn get_ref(&self) -> <T as FragileTryContainer<T>>::Ref<'_>
fn get_ref(&self) -> <T as FragileTryContainer<T>>::Ref<'_>
Infallibly get immutable access to the T
.
Source§impl<T> FragileMutContainer<T> for Twhere
T: ?Sized,
impl<T> FragileMutContainer<T> for Twhere
T: ?Sized,
Source§fn get_mut(&mut self) -> <T as FragileTryMutContainer<T>>::RefMut<'_>
fn get_mut(&mut self) -> <T as FragileTryMutContainer<T>>::RefMut<'_>
Infallibly get mutable access to the T
.
Source§impl<T> FragileTryContainer<T> for Twhere
T: ?Sized,
impl<T> FragileTryContainer<T> for Twhere
T: ?Sized,
Source§fn into_inner(self) -> Option<T>
fn into_inner(self) -> Option<T>
Infallibly get the T
.
Source§fn try_get_ref(
&self,
) -> Result<<T as FragileTryContainer<T>>::Ref<'_>, <T as FragileTryContainer<T>>::RefError>
fn try_get_ref( &self, ) -> Result<<T as FragileTryContainer<T>>::Ref<'_>, <T as FragileTryContainer<T>>::RefError>
Infallibly get immutable access to the T
.
Source§type RefError = Infallible
type RefError = Infallible
An error that might be returned by
try_get_ref
. This type should implement
[std::error::Error
]. Read moreSource§fn new_container(t: T) -> T
fn new_container(t: T) -> T
Create a new container that owns the provided
T
.Source§impl<T> FragileTryMutContainer<T> for Twhere
T: ?Sized,
impl<T> FragileTryMutContainer<T> for Twhere
T: ?Sized,
Source§fn try_get_mut(
&mut self,
) -> Result<<T as FragileTryMutContainer<T>>::RefMut<'_>, <T as FragileTryMutContainer<T>>::RefMutError>
fn try_get_mut( &mut self, ) -> Result<<T as FragileTryMutContainer<T>>::RefMut<'_>, <T as FragileTryMutContainer<T>>::RefMutError>
Infallibly get mutable access to the T
.
Source§type RefMut<'a> = &'a mut T
where
T: 'a
type RefMut<'a> = &'a mut T where T: 'a
A mutably borrowed value from the container. Read more
Source§type RefMutError = Infallible
type RefMutError = Infallible
An error that might be returned by
try_get_mut
. This type should implement
[std::error::Error
]. Read moreSource§impl<T> IndependentClone<AnySpeed> for T
impl<T> IndependentClone<AnySpeed> for T
Source§fn independent_clone(&self) -> T
fn independent_clone(&self) -> T
Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§impl<T> IndependentClone<ConstantTime> for T
impl<T> IndependentClone<ConstantTime> for T
Source§fn independent_clone(&self) -> T
fn independent_clone(&self) -> T
Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§impl<T> IndependentClone<LogTime> for T
impl<T> IndependentClone<LogTime> for T
Source§fn independent_clone(&self) -> T
fn independent_clone(&self) -> T
Get a deep clone of a value, which does not share any semantically-important mutable state. Read more
Source§impl<T> MirroredClone<AnySpeed> for T
impl<T> MirroredClone<AnySpeed> for T
Source§fn mirrored_clone(&self) -> T
fn mirrored_clone(&self) -> T
Get a clone that shares all semantically-important mutable state with its source. Read more
Source§impl<T> MirroredClone<ConstantTime> for T
impl<T> MirroredClone<ConstantTime> for T
Source§fn mirrored_clone(&self) -> T
fn mirrored_clone(&self) -> T
Get a clone that shares all semantically-important mutable state with its source. Read more
Source§impl<T> MirroredClone<LogTime> for T
impl<T> MirroredClone<LogTime> for T
Source§fn mirrored_clone(&self) -> T
fn mirrored_clone(&self) -> T
Get a clone that shares all semantically-important mutable state with its source. Read more