SortedList
A fast sorted list data structure in rust, inspired by the python library Sorted Containers
This repository is a work in progress. See Usage and Documentation for available features.
Benchmark Tests and Results
Usage
use SortedList;
let array = vec!;
let mut sorted_list = from;
println!;
// [19, 25, 90]
sorted_list.insert;
sorted_list.insert;
sorted_list.insert;
println!;
// [1, 19, 20, 25, 90, 100]
let x = sorted_list.remove;
assert_eq!;
// removed the 3-rd smallest (0-indexed) element.
assert_eq!;
assert_eq!;
println!;
// [1, 19, 20, 90, 100]