Expand description
Provides Range type expanding on RangeBounds.
Structs§
- Range
- A range of
chars within the text.
Functions§
- is_
exact_ subset - Similar to is_subset but requires each element of
super_setto be matched - is_
subset - Returns true if all ranges yielded by
sub_setare contained bysuper_set. This is essentially an optimized implementation ofsub_set.all(|rb| super_set.any(|ra| ra.contains(rb)))that runs in O(m+n) instead of O(mn) (and in many cases faster).