MCPcopy Create free account
hub / github.com/davidblewett/rure-python / push

Method push

regex/regex-syntax/src/hir/interval.rs:50–55  ·  view source on GitHub ↗

Add a new interval to this set.

(&mut self, interval: I)

Source from the content-addressed store, hash-verified

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 ///

Callers 4

intersectMethod · 0.45
differenceMethod · 0.45
negateMethod · 0.45
canonicalizeMethod · 0.45

Calls 1

canonicalizeMethod · 0.45

Tested by

no test coverage detected