Skip to content

RangeMap::overlapping_mut? #62

Open
@jasonwhite

Description

@jasonwhite

Thanks for this crate! Also thanks for adding RangeMap::overlapping recently; this is super useful.

Do you see any reason why we cannot also add RangeMap::overlapping_mut to mutate the values? BTreeMap has range_mut, so it should be easy to implement. I can't see how this would break any of the internal invariants of splitting or coalescing. As of now, the only way to mutate a value is by inserting a new value. This is quite cumbersome when the value is a Vec<_> that we might want to append to, for example.

If this seems reasonable, I'm happy to implement it.

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