Trait text_scanner::CharRangesExt
source · pub trait CharRangesExt {
// Required method
fn char_ranges(&self) -> CharRanges<'_> ⓘ;
// Provided method
fn char_ranges_offset(&self, offset: usize) -> CharRangesOffset<'_> ⓘ { ... }
}
Required Methods§
sourcefn char_ranges(&self) -> CharRanges<'_> ⓘ
fn char_ranges(&self) -> CharRanges<'_> ⓘ
Returns an iterator over char
s and their start and end byte positions.
See examples in the crate root.
Provided Methods§
sourcefn char_ranges_offset(&self, offset: usize) -> CharRangesOffset<'_> ⓘ
fn char_ranges_offset(&self, offset: usize) -> CharRangesOffset<'_> ⓘ
Returns an iterator over char
s and their start and end byte positions,
with an offset applied to all positions.
See examples in the crate root.