Struct core::str::CharRangeUnstable [-]  [+] [src]

pub struct CharRange {
    pub ch: char,
    pub 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

Trait Implementations

Derived Implementations

impl Copy for CharRange