[src]

Struct std::str::CharRange

pub struct CharRange {
    ch: char,
    next: uint,
}

Struct that contains a char and the index of the first byte of the next char in a string. This can be used as a data structure for iterating over the UTF-8 bytes of a string.

Fields

ch

Current char

next

Index of the first byte of the next char