๐ฌThis is a nightly-only experimental API. (
slice_internals)Expand description
This module contains the entry points for slice::sort.
Re-exportsยง
use crate::cmp;๐Not( optimize_for_size)use crate::mem::MaybeUninit;๐use crate::mem::SizedTypeProperties;๐Experimental use crate::slice::sort::shared::smallsort::SMALL_SORT_GENERAL_SCRATCH_LEN;๐Experimental Not( optimize_for_size)use crate::slice::sort::shared::smallsort::StableSmallSortTypeImpl;๐Experimental Not( optimize_for_size)use crate::slice::sort::shared::smallsort::insertion_sort_shift_left;๐Experimental Not( optimize_for_size)use crate::cfg_select;๐use crate::intrinsics;๐Experimental
Modulesยง
- drift ๐
Experimental Not( optimize_for_size) - This module contains the hybrid top-level loop combining bottom-up Mergesort with top-down Quicksort.
- merge ๐
Experimental - This module contains logic for performing a merge of two sorted sub-slices.
- quicksort ๐
Experimental Not( optimize_for_size) - This module contains a stable quicksort and partition implementation.
Structsยง
- Aligned
Storage ๐Experimental
Traitsยง
- BufGuard ๐ป
Experimental - Abstracts owned memory buffer, so that sort code can live in core where no allocation is possible. This trait can then be implemented in a place that has access to allocation.
Functionsยง
- driftsort_
main ๐Experimental Not( optimize_for_size) - See
sort - sort
Experimental - Stable sort called driftsort by Orson Peters and Lukas Bergdoll. Design document: https://github.com/Voultapher/sort-research-rs/blob/main/writeup/driftsort_introduction/text.md