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

Add Subtrie::is_empty method #15

Closed messense closed 6 years ago

messense commented 6 years ago

Currently I have to use the following workaround:

let is_empty = subtrie.iter().next().is_none();
sdleffler commented 6 years ago

Looks good to me! Thanks for the PR!