Crate read_chars

source ·
Expand description

ReadChars is a simple iterator crate for turning the bytes of an I/O reader into characters for use by things like handwritten lexers.

Structs

  • An iterator that takes any type implementing std::io::Read and iterates over the UTF-8 characters in it. It returns an io::Result with the success value being a tuple of the character and its byte span.