CaseInsensitiveHashMap
A hashmap for Rust that uses case-insensitive strings as keys.
let mut map = new;
map.insert;
assert!;
assert!;
assert!;
assert!;
The API is identical to the HashMap
in std
.
Implementation
This use the UniCase crate to handle
the case-insensitivity. Strings that are used as keys are wrapped in
UniCase
objects so that they hash and compare for equality in a
case-insensitive manner.