First, thanks for this library!
I'm looking at a trie/tree library that can quickly give me entries in the tree that match a prefix. This library appears to do this with common_prefix_values() and common_prefixes().
The problem is that when we are using the map it is mutable and we need to publish a value out of the map using a mutable reference, but there's no api for this.
Sadly looking at the code it looks like all the CommonPrefixesIter code paths will need a duplicate mutable version of it (but maybe some templating might work).
First, thanks for this library!
I'm looking at a trie/tree library that can quickly give me entries in the tree that match a prefix. This library appears to do this with
common_prefix_values()andcommon_prefixes().The problem is that when we are using the map it is mutable and we need to publish a value out of the map using a mutable reference, but there's no api for this.
Sadly looking at the code it looks like all the
CommonPrefixesItercode paths will need a duplicate mutable version of it (but maybe some templating might work).