sdleffler / qp-trie-rs

An idiomatic and fast QP-trie implementation in pure Rust.
Mozilla Public License 2.0
95 stars 24 forks source link

Supplant the `Borrow` bound on keys with a new `AsKey` trait #14

Open tapeinosyne opened 6 years ago

tapeinosyne commented 6 years ago

An implementation of the AsKey trait, as proposed in #13. The primary goal of this PR is to improve the ergonomics of string keys, but it might be worth considering it as a venue to explore other key types as well.

A few things should be worth considering for review. Notably:

Before merging, there's some housekeeping to take care of: