gechelberger / intervalsets

0 stars 0 forks source link

Interval & IntervalSet => move semantics #83

Open gechelberger opened 3 hours ago

gechelberger commented 3 hours ago

The Set types currently implement all operations by reference. This was done initially to easily support generic types T which were Clone but not Copy. Potentially the compiler is able to optimize some of these away, but it's probably better to make it the user's explicit choice and let the borrow checker do its job.

gechelberger commented 3 hours ago

Predicate operations such as Contains and Intersects should remain with by-reference semantics.