utf8-bufread 1.0.0

Provides alternatives to BufRead's read_line & lines that stop not on newlines
Documentation
1
2
3
4
5
6
7
8
9
10
11
#![feature(test)]
use std::hint::black_box;
use std::io::Cursor;
use utf8_bufread::BufRead;

fn main() {
    let mut r = Cursor::new("");
    let s1 = r.read_codepoint().unwrap();
    let _s2 = r.read_codepoint().unwrap();
    black_box(s1);
}