pub trait MultiCharRange {
// Required methods
fn iter_ranges<'a>(&'a self) -> Box<dyn Iterator<Item = CharRange> + 'a>;
fn range_count(&self) -> usize;
}
Expand description
A trait for objects that represent one or more disjoint, non-adjacent CharRanges.
Required Methods§
Sourcefn iter_ranges<'a>(&'a self) -> Box<dyn Iterator<Item = CharRange> + 'a>
fn iter_ranges<'a>(&'a self) -> Box<dyn Iterator<Item = CharRange> + 'a>
Iterate over the disjoint, non-adjacent [CharRange]s in the collection in ascending order.
Sourcefn range_count(&self) -> usize
fn range_count(&self) -> usize
The number of ranges in the collection.