Skip to content

Cannot use common_prefix functions to get mutable version #40

@allada

Description

@allada

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions