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

Method union

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

Union this set with the given set, in place.

(&mut self, other: &IntervalSet<I>)

Source from the content-addressed store, hash-verified

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>) {

Callers 3

symmetric_differenceMethod · 0.45
canonicalizeMethod · 0.45
symmetric_differenceMethod · 0.45

Calls 1

canonicalizeMethod · 0.45

Tested by

no test coverage detected