pub enum SortAlgorithm {
Auto,
Comparison,
Radix,
}Expand description
Sort algorithm selection for argsort operations
Variants§
Auto
Automatically select the best algorithm for the data type.
When config.stable = true, this falls back to comparison sort
which preserves relative order of equal elements. When stable = false,
radix sort may be selected for eligible types.
Comparison
Standard comparison sort, O(n log n).
Respects config.stable: when true, uses a stable sort that preserves
relative order of equal elements; when false, uses an unstable sort.
Radix
LSD radix sort for integers, O(n*k).
Always unstable — the config.stable flag is ignored when this
algorithm is explicitly selected.
Trait Implementations§
Source§impl Clone for SortAlgorithm
impl Clone for SortAlgorithm
Source§fn clone(&self) -> SortAlgorithm
fn clone(&self) -> SortAlgorithm
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 Debug for SortAlgorithm
impl Debug for SortAlgorithm
Source§impl Default for SortAlgorithm
impl Default for SortAlgorithm
Source§fn default() -> SortAlgorithm
fn default() -> SortAlgorithm
Returns the “default value” for a type. Read more
Source§impl PartialEq for SortAlgorithm
impl PartialEq for SortAlgorithm
impl Copy for SortAlgorithm
impl Eq for SortAlgorithm
impl StructuralPartialEq 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 UnsafeUnpin 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