3 ms·
I haven't done sorting, so no knowledge of sort interface in Rust, but maybe so it works across different sortable collections?
by Ygg2 12y ago
I haven't done sorting, so no knowledge of sort interface in Rust, but maybe so it works across different sortable collections?
- pcwalton 12y agoThere's no need to use a macro: you can abstract over different kinds of sortable collections using a trait. (That said, there's no real reason to generalize IMO: by far the most common case is sorting slices.)