Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RangeMap::overlapping_mut and RangeInclusiveMap::overlapping_mut #63

Closed
wants to merge 1 commit into from

Conversation

jasonwhite
Copy link
Contributor

@jasonwhite jasonwhite commented Feb 2, 2023

This is useful for mutating values while iterating overlapping ranges.

This also adds an example for RangeMap::overlapping and RangeInclusiveMap::overlapping.

Note that this is not implemented for RangeSet because there's no value to mutate in that case.

Fixes #62

This is useful for mutating values while iterating overlapping ranges.
@jasonwhite
Copy link
Contributor Author

Oops, if a value is mutated to match the value of an adjacent range, then the adjacent range would not be merged. Closing for now.

@jasonwhite jasonwhite closed this Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RangeMap::overlapping_mut?
1 participant