Trait try_partialord::TrySort[][src]

pub trait TrySort<T> {
    fn try_sort_by<F>(&mut self, compare: F) -> OrderResult<()>
    where
        F: FnMut(&T, &T) -> Option<bool>
;
fn try_sort_by_cached_key<K, F>(&mut self, f: F) -> OrderResult<()>
    where
        F: FnMut(&T) -> Option<K>,
        K: PartialOrd<K>
;
fn try_sort_unstable_by<F>(&mut self, compare: F) -> OrderResult<()>
    where
        F: FnMut(&T, &T) -> Option<bool>
;
fn try_is_sorted_by<F>(&self, compare: F) -> OrderResult<bool>
    where
        F: FnMut(&T, &T) -> Option<bool>
; fn try_sort(&mut self) -> OrderResult<()>
    where
        T: PartialOrd<T>
, { ... }
fn try_sort_by_key<K, F>(&mut self, f: F) -> OrderResult<()>
    where
        F: FnMut(&T) -> Option<K>,
        K: PartialOrd<K>
, { ... }
fn try_sort_unstable(&mut self) -> OrderResult<()>
    where
        T: PartialOrd<T>
, { ... }
fn try_sort_unstable_by_key<K, F>(&mut self, f: F) -> OrderResult<()>
    where
        F: FnMut(&T) -> Option<K>,
        K: PartialOrd<K>
, { ... }
fn try_is_sorted(&self) -> OrderResult<bool>
    where
        T: PartialOrd<T>
, { ... }
fn try_is_sorted_by_key<K, F>(&mut self, f: F) -> OrderResult<bool>
    where
        F: FnMut(&T) -> Option<K>,
        K: PartialOrd<K>
, { ... } }

Sort methods for PartialOrd.

Required methods

fn try_sort_by<F>(&mut self, compare: F) -> OrderResult<()> where
    F: FnMut(&T, &T) -> Option<bool>, 
[src]

fn try_sort_by_cached_key<K, F>(&mut self, f: F) -> OrderResult<()> where
    F: FnMut(&T) -> Option<K>,
    K: PartialOrd<K>, 
[src]

fn try_sort_unstable_by<F>(&mut self, compare: F) -> OrderResult<()> where
    F: FnMut(&T, &T) -> Option<bool>, 
[src]

fn try_is_sorted_by<F>(&self, compare: F) -> OrderResult<bool> where
    F: FnMut(&T, &T) -> Option<bool>, 
[src]

Loading content...

Provided methods

fn try_sort(&mut self) -> OrderResult<()> where
    T: PartialOrd<T>, 
[src]

PartialOrd version for slice::sort

fn try_sort_by_key<K, F>(&mut self, f: F) -> OrderResult<()> where
    F: FnMut(&T) -> Option<K>,
    K: PartialOrd<K>, 
[src]

fn try_sort_unstable(&mut self) -> OrderResult<()> where
    T: PartialOrd<T>, 
[src]

fn try_sort_unstable_by_key<K, F>(&mut self, f: F) -> OrderResult<()> where
    F: FnMut(&T) -> Option<K>,
    K: PartialOrd<K>, 
[src]

fn try_is_sorted(&self) -> OrderResult<bool> where
    T: PartialOrd<T>, 
[src]

fn try_is_sorted_by_key<K, F>(&mut self, f: F) -> OrderResult<bool> where
    F: FnMut(&T) -> Option<K>,
    K: PartialOrd<K>, 
[src]

Loading content...

Implementations on Foreign Types

impl<T> TrySort<T> for [T][src]

Loading content...

Implementors

Loading content...