It'd be neat to implement an API like [hash_map::Entry](https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html).