key-vec

Crates.iokey-vec
lib.rskey-vec
version0.4.1
sourcesrc
created_at2019-08-25 03:29:09.380314
updated_at2023-07-04 16:08:04.114041
descriptionVec of key-value pairs sorted by key
homepage
repositoryhttps://gitlab.com/spearman/key-vec
max_upload_size
id159473
size30,559
Shane Pearman (spearman)

documentation

README

key_vec

Vec of key-value pairs sorted by key

Documentation

let mut v = KeyVec::<i32, char>::new();
v.extend (vec![(10i32, 'a'), (-1, 'b'), (3, 'c'), (-1, 'd')].into_iter());
assert_eq!(*v, vec![(-1i32, 'd'), (3, 'c'), (10, 'a')]);
Commit count: 12

cargo fmt