Trait Sorter

Source
pub trait Sorter<T>
where T: Ord,
{ // Required method fn sort(&self, items: &mut [T]); }
Expand description

Sorter is a handy trait to allow multiple distinct implementations of the same sorting mechanism.

Required Methods§

Source

fn sort(&self, items: &mut [T])

Implementors§

Source§

impl<T> Sorter<T> for InsertionSort
where T: Ord,