Open mcronce opened 2 years ago
Hi, sorry for this late response. I will have a look this evening, after work.
As it is written in the doc : https://docs.rs/voracious_radix_sort/latest/voracious_radix_sort/
The struct must be mapped to a key. The key must be among the aforementioned types (bool, char, f32, etc...).
Type T
in the Radixableu8
.. u128
or i8
.. i128
or f32
or f64
or char
or usize
or isize
or bool
I'm looking to use voracious sort in a project with the following structs (modified to try to utilize voracious sort):
However, this
impl Radixable
fails, requiringDispatcher
:The obvious solution is to add a
Dispatcher
bound onK
:- or -
But this produces a compile error:
Alternatively, trying to add a blanket
impl Dispatcher
violates orphan rules:I feel like I'm missing something that would be obvious to somebody who has more experience with Rust's type system ;)