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