math_ops::sort

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>