Enum grenad::SortAlgorithm
source · pub enum SortAlgorithm {
Stable,
Unstable,
}
Expand description
The kind of sort algorithm used by the sorter to sort its internal vector.
Variants§
Stable
The stable sort algorithm maintains the relative order of values with equal keys, but it is slower than the unstable algorithm.
Unstable
The unstable sort algorithm is faster than the unstable algorithm, but it does not keep the relative order of values with equal keys.
Trait Implementations§
source§impl Clone for SortAlgorithm
impl Clone for SortAlgorithm
source§fn clone(&self) -> SortAlgorithm
fn clone(&self) -> SortAlgorithm
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 Debug for SortAlgorithm
impl Debug for SortAlgorithm
impl Copy for SortAlgorithm
Auto Trait Implementations§
impl Freeze for SortAlgorithm
impl RefUnwindSafe for SortAlgorithm
impl Send for SortAlgorithm
impl Sync for SortAlgorithm
impl Unpin for SortAlgorithm
impl UnwindSafe for SortAlgorithm
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