Skip to main content

ParallelSliceMut

Trait ParallelSliceMut 

Source
pub trait ParallelSliceMut<T: Send> {
    // Required methods
    fn par_sort(&mut self)
       where T: Ord;
    fn par_sort_by<F>(&mut self, compare: F)
       where F: Fn(&T, &T) -> Ordering + Sync + Send;
    fn par_sort_by_key<K, F>(&mut self, f: F)
       where F: Fn(&T) -> K + Sync + Send,
             K: Ord + Send;
    fn par_sort_unstable(&mut self)
       where T: Ord;
    fn par_sort_unstable_by<F>(&mut self, compare: F)
       where F: Fn(&T, &T) -> Ordering + Sync + Send;
    fn par_sort_unstable_by_key<K, F>(&mut self, f: F)
       where F: Fn(&T) -> K + Sync + Send,
             K: Ord + Send;
}
Expand description

Extension trait for parallel slice sorting.

Required Methods§

Source

fn par_sort(&mut self)
where T: Ord,

Sorts the slice in parallel (stable).

Source

fn par_sort_by<F>(&mut self, compare: F)
where F: Fn(&T, &T) -> Ordering + Sync + Send,

Sorts the slice in parallel with a comparator (stable).

Source

fn par_sort_by_key<K, F>(&mut self, f: F)
where F: Fn(&T) -> K + Sync + Send, K: Ord + Send,

Sorts the slice in parallel with a key extraction function (stable).

Source

fn par_sort_unstable(&mut self)
where T: Ord,

Sorts the slice in parallel (unstable).

Source

fn par_sort_unstable_by<F>(&mut self, compare: F)
where F: Fn(&T, &T) -> Ordering + Sync + Send,

Sorts the slice in parallel with a comparator (unstable).

Source

fn par_sort_unstable_by_key<K, F>(&mut self, f: F)
where F: Fn(&T) -> K + Sync + Send, K: Ord + Send,

Sorts the slice in parallel with a key extraction function (unstable).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Send> ParallelSliceMut<T> for [T]

Source§

fn par_sort(&mut self)
where T: Ord,

Source§

fn par_sort_by<F>(&mut self, compare: F)
where F: Fn(&T, &T) -> Ordering + Sync + Send,

Source§

fn par_sort_by_key<K, F>(&mut self, f: F)
where F: Fn(&T) -> K + Sync + Send, K: Ord + Send,

Source§

fn par_sort_unstable(&mut self)
where T: Ord,

Source§

fn par_sort_unstable_by<F>(&mut self, compare: F)
where F: Fn(&T, &T) -> Ordering + Sync + Send,

Source§

fn par_sort_unstable_by_key<K, F>(&mut self, f: F)
where F: Fn(&T) -> K + Sync + Send, K: Ord + Send,

Implementors§