Struct device_tree::util::str::CharIndices [] [src]

pub struct CharIndices<'a> {
    // some fields omitted
}
1.0.0

Iterator for a string's characters and their byte offsets.

Methods

impl<'a> CharIndices<'a>

fn as_str(&self) -> &'a str1.4.0

View the underlying data as a subslice of the original data.

This has the same lifetime as the original slice, and so the iterator can continue to be used while this exists.

Trait Implementations

impl<'a> Iterator for CharIndices<'a>

type Item = (usize, char)

fn next(&mut self) -> Option<(usize, char)>

fn size_hint(&self) -> (usize, Option<usize>)

impl<'a> DoubleEndedIterator for CharIndices<'a>

fn next_back(&mut self) -> Option<(usize, char)>

Derived Implementations

impl<'a> Debug for CharIndices<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl<'a> Clone for CharIndices<'a>

fn clone(&self) -> CharIndices<'a>