1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::super::sorts::boolean_sort::boolean_sort; use super::super::Radixable; impl Radixable<bool> for bool { type Key = bool; #[inline] fn key(&self) -> bool { *self } fn voracious_sort(&self, arr: &mut [bool]) { boolean_sort(arr); } fn voracious_stable_sort(&self, arr: &mut [bool]) { boolean_sort(arr); } }