Make RangeMap and RangeSet generic over a RangeTrait instead of core::ops::Range #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my attempt at fixing #56
Important caveats:
RangeMapInclusive
orRangeSetInclusive
but I imagine the changover process would be roughly the same. I wanted to see what you thought before I went to far (also I don't need Inclusive for my usecases lol shh)Some things worth noting:
impl<T> RangeTrait for Range<T>
which is niceQuestions I have
Range
s worth it? And if so I am happy to overhall the Inclusive variants to match.RangeTrait
vs using aRangeTrait<I>
? I went with the associated type version but not for any particular reason.