Add TreeMap::remove_between that can take abstract start and end points

This commit introduces a new adaptor trait for SeekTarget that works around
frustrating issues with lifetimes. It wraps the arguments in a newtype wrapper
that lives on the stack to avoid the lifetime getting extended to the caller
of the method.

This allows us to introduce a PathSuccessor object that can be passed as the
end argument of remove_between to remove a whole subtree.
ee3637216eNathan Sobo committed on 5/12/2023, 3:21:01 PM· committed by Mikayla Makiparent89352a2
3 files changedLine totals unavailable