pub trait Sorter<T>where T: Ord,{ // Required method fn sort(&self, items: &mut [T]); }
Sorter is a handy trait to allow multiple distinct implementations of the same sorting mechanism.