pub trait ChunkSort<T>where
T: PolarsDataType,{
// Required methods
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>;
fn sort(&self, descending: bool) -> ChunkedArray<T>;
fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>;
// Provided method
fn arg_sort_multiple(
&self,
by: &[Column],
_options: &SortMultipleOptions,
) -> Result<ChunkedArray<UInt32Type>, PolarsError> { ... }
}Expand description
Sort operations on ChunkedArray.
Required Methods§
fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>
Sourcefn sort(&self, descending: bool) -> ChunkedArray<T>
fn sort(&self, descending: bool) -> ChunkedArray<T>
Returned a sorted ChunkedArray.
Sourcefn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
Retrieve the indexes needed to sort this array.
Provided Methods§
Sourcefn arg_sort_multiple(
&self,
by: &[Column],
_options: &SortMultipleOptions,
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn arg_sort_multiple( &self, by: &[Column], _options: &SortMultipleOptions, ) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ChunkSort<BinaryOffsetType> for ChunkedArray<BinaryOffsetType>
impl ChunkSort<BinaryType> for ChunkedArray<BinaryType>
impl ChunkSort<BooleanType> for ChunkedArray<BooleanType>
impl ChunkSort<ListType> for ChunkedArray<ListType>
impl ChunkSort<StringType> for ChunkedArray<StringType>
impl ChunkSort<StructType> for ChunkedArray<StructType>
Available on crate feature
dtype-struct only.