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
sourceimpl Clone for SortAlgorithm
impl Clone for SortAlgorithm
sourcefn clone(&self) -> SortAlgorithm
fn clone(&self) -> SortAlgorithm
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 moresourceimpl Debug for SortAlgorithm
impl Debug for SortAlgorithm
impl Copy for SortAlgorithm
Auto Trait Implementations
impl RefUnwindSafe for SortAlgorithm
impl Send for SortAlgorithm
impl Sync for SortAlgorithm
impl Unpin for SortAlgorithm
impl UnwindSafe for SortAlgorithm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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