Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 608 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 608 Bytes

ds-ext

Crates.io Docs.rs

Extensions to standard Rust data structures which provide additional capabilities

Example usage:

use ds_ext::*;

let mut set = OrdHashSet::new();
set.insert(1);
assert!(set.contains(&1));

let mut map = OrdHashMap::from_iter(set.into_iter().map(|i| (i, i)));
assert_eq!(map.get(&1), map.bisect(|i| i.partial_cmp(&1)));