contain-rs / hashmap2

Fork of std::collections::HashMap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork of std::collections::HashMap

A fork of Rust's std::collections::HashMap type that has some minor changes. This fork only exists as a band-aid until the changes are implemented in Rust's stdlib.

Changes

  • Added HashMap::take which is the same as HashMap::remove but also returns the key.
  • Added HashMap::entry2 to take a Cow key.
  • Added ::key to the various Entry types

Forked from d1c7a93eff5bd27632130cc5bcdaac54c32bca08

About

Fork of std::collections::HashMap

License:Apache License 2.0


Languages

Language:Rust 99.6%Language:Shell 0.4%