Union this set with the given set, in place.
(&mut self, other: &IntervalSet<I>)
| 83 | |
| 84 | /// Union this set with the given set, in place. |
| 85 | pub fn union(&mut self, other: &IntervalSet<I>) { |
| 86 | // This could almost certainly be done more efficiently. |
| 87 | self.ranges.extend(&other.ranges); |
| 88 | self.canonicalize(); |
| 89 | } |
| 90 | |
| 91 | /// Intersect this set with the given set, in place. |
| 92 | pub fn intersect(&mut self, other: &IntervalSet<I>) { |
no test coverage detected