Trait Sorter

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

A shared sorting trait

Required Methods§

Source

fn sort<T>(&self, slice: &mut [T])
where T: Ord,

Any mutable ref<slice<T>> that is Ord is sortable.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§