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§

source

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.

source

fn range_count(&self) -> usize

The number of ranges in the collection.

Implementations on Foreign Types§

source§

impl MultiCharRange for char

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for RangeInclusive<char>

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for RangeInclusive<i8>

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for RangeInclusive<i32>

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for RangeInclusive<u8>

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for RangeInclusive<u32>

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for Block

source§

fn iter_ranges<'a>(&'a self) -> Box<dyn Iterator<Item = CharRange> + 'a>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for CharRange

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

source§

impl MultiCharRange for UnicodeBlockId

source§

fn iter_ranges(&self) -> Box<dyn Iterator<Item = CharRange>>

source§

fn range_count(&self) -> usize

Implementors§