Crate search_sort[][src]

Expand description

An implementation of few searching and sorting algorithms.

This crate is currently WIP, and supports only few of them. Currently supported algorithms:

Quick example

use search_sort::{search, sort};

let mut slice = [5, 1, 91, -45, 11, 5];
sort::quick(&mut slice);
assert_eq!(slice, [-45, 1, 5, 5, 11, 91]);

assert_eq!(Some(2), search::binary_first(&slice, &5));
assert_eq!(None, search::binary_first(&slice, &42));

Modules

Implementations of searching algorithms.

Implementations of sorting algorithms.