sorted-vec2 0.1.0

Maintained successor to the sorted-vec crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde_json;
use sorted_vec2::*;

fn main() {
    let v = SortedVec::from_unsorted(vec![5, -10, 99, -11, 2, 17, 10]);
    println!("{}", serde_json::to_string(&v).unwrap());
    println!(
        "{:?}",
        serde_json::from_str::<SortedVec<i32>>("[-11,-10,2,5,10,17,99]").unwrap()
    );
}