rust/library/alloc
Lukas Bergdoll dbc0ed2a10 Unify stable and unstable sort implementations in same core module
This moves the stable sort implementation to the core::slice::sort module. By
virtue of being in core it can't access `Vec`. The two `Vec` used by merge sort,
`buf` and `runs`, are modelled as custom types that implement the very limited
required `Vec` interface with the help of provided allocation and free
functions. This is done to allow future re-use of functions and logic between
stable and unstable sort. Such as `insert_head`.
2022-11-20 20:35:40 +01:00
..
benches update str.contains benchmarks 2022-11-14 23:03:16 +01:00
src Unify stable and unstable sort implementations in same core module 2022-11-20 20:35:40 +01:00
tests Rollup merge of #104435 - scottmcm:iter-repeat-n, r=thomcc 2022-11-20 13:15:59 +09:00
Cargo.toml