pub trait CharRangesExt {
    // Required method
    fn char_ranges(&self) -> CharRanges<'_> ;

    // Provided method
    fn char_ranges_offset(&self, offset: usize) -> CharRangesOffset<'_>  { ... }
}

Required Methods§

source

fn char_ranges(&self) -> CharRanges<'_>

Returns an iterator over chars and their start and end byte positions.

See examples in the crate root.

Provided Methods§

source

fn char_ranges_offset(&self, offset: usize) -> CharRangesOffset<'_>

Returns an iterator over chars and their start and end byte positions, with an offset applied to all positions.

See examples in the crate root.

Implementations on Foreign Types§

source§

impl CharRangesExt for str

Implementors§