Crates.io | ds-ext |
lib.rs | ds-ext |
version | 0.3.0 |
source | src |
created_at | 2023-07-03 11:04:24.096056 |
updated_at | 2024-08-29 02:30:29.28107 |
description | Extensions to standard Rust data structures which provide additional capabilities |
homepage | |
repository | https://github.com/haydnv/ds-ext |
max_upload_size | |
id | 906903 |
size | 87,633 |
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)));
//! ```