Trait lib_wc::sorting::Sort

source ·
pub trait Sort<T: Ord> {
    // Required method
    fn sort(arr: &mut [T]);
}
Expand description

Types that implement this trait can sort slices of data

Required Methods§

source

fn sort(arr: &mut [T])

Sorts a slice of data

Implementors§

source§

impl<T: Ord> Sort<T> for BubbleSort

source§

impl<T: Ord> Sort<T> for InsertionSort

source§

impl<T: Ord> Sort<T> for QuickSort