Add a new interval to this set.
(&mut self, interval: I)
| 48 | |
| 49 | /// Add a new interval to this set. |
| 50 | pub fn push(&mut self, interval: I) { |
| 51 | // TODO: This could be faster. e.g., Push the interval such that |
| 52 | // it preserves canonicalization. |
| 53 | self.ranges.push(interval); |
| 54 | self.canonicalize(); |
| 55 | } |
| 56 | |
| 57 | /// Return an iterator over all intervals in this set. |
| 58 | /// |
no test coverage detected