char_collection

Trait MultiCharRange

Source
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§