Trait SortOps

Source
pub trait SortOps<T> {
    // Required methods
    fn sorted(&self) -> Vector<T>;
    fn sort_in_place(&mut self);
}
Expand description

Trait providing sorting methods for Vector<T>.

Required Methods§

Source

fn sorted(&self) -> Vector<T>

Returns a new sorted vector without modifying the original.

Source

fn sort_in_place(&mut self)

Sorts the vector in place.

Implementors§

Source§

impl<T> SortOps<T> for Vector<T>