Trait array_tool::string::ToGraphemeBytesIter [] [src]

pub trait ToGraphemeBytesIter<'a> {
    fn grapheme_bytes_iter(&'a self) -> GraphemeBytesIter<'a>;
}

ToGraphemeBytesIter - create an iterator to return bytes for each grapheme in a string.

Required Methods

Important traits for GraphemeBytesIter<'a>

Returns a GraphemeBytesIter which you may iterate over.

Example

use array_tool::string::ToGraphemeBytesIter;

let string = "a s—d féZ";
let mut graphemes = string.grapheme_bytes_iter();
graphemes.skip(3).next();

Output

[226, 128, 148]

Implementations on Foreign Types

impl<'a> ToGraphemeBytesIter<'a> for str
[src]

Important traits for GraphemeBytesIter<'a>
[src]

Implementors