pub struct ArgsortConfig {
pub descending: bool,
pub algorithm: SortAlgorithm,
pub stable: bool,
pub parallel: bool,
}Expand description
Configuration for argsort with algorithm selection
Fields§
§descending: bool§algorithm: SortAlgorithm§stable: boolUse stable sort to preserve relative order of equal elements. Default: true.
parallel: boolEnable parallel sorting for large arrays. Default: false.
Implementations§
Source§impl ArgsortConfig
impl ArgsortConfig
Sourcepub fn descending(self, descending: bool) -> Self
pub fn descending(self, descending: bool) -> Self
Set descending order
Sourcepub fn algorithm(self, algorithm: SortAlgorithm) -> Self
pub fn algorithm(self, algorithm: SortAlgorithm) -> Self
Set algorithm
Trait Implementations§
Source§impl Clone for ArgsortConfig
impl Clone for ArgsortConfig
Source§fn clone(&self) -> ArgsortConfig
fn clone(&self) -> ArgsortConfig
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 ArgsortConfig
impl Debug for ArgsortConfig
Auto Trait Implementations§
impl Freeze for ArgsortConfig
impl RefUnwindSafe for ArgsortConfig
impl Send for ArgsortConfig
impl Sync for ArgsortConfig
impl Unpin for ArgsortConfig
impl UnsafeUnpin for ArgsortConfig
impl UnwindSafe for ArgsortConfig
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