sort-const
A macro for sorting arrays and slices at compile time.
Usage
Just use the const_quicksort or const_shellsort macros.
use const_quicksort;
const
const A: & = &const_quicksort!;
const B: & = &const_quicksort!;
const C: & = &const_quicksort!;
assert_eq!;
assert_eq!;
assert_eq!;
For now, this crate uses a custom consty fork of arrayvec. bluss/arrayvec#294 should fix this.
License
Licensed under
- MIT license (LICENSE or https://opensource.org/licenses/MIT)