pub trait CoSortStable {
// Required method
fn co_sort_stable_with(self, order: &[usize]);
}Expand description
If you want to implement CoSortStable on your type nothing simpler.
struct MyStruct(Vec<i32>);
impl CoSortStable for MyStruct {
fn co_sort_stable_with(mut self, order: &[usize]) {
self.0.as_mut_slice().co_sort_with(order);
}
}