pub fn read_line<R: BufRead + ?Sized>(
    r: &mut R,
    buf: &mut Vec<u8>
) -> Result<usize>
Expand description

Read a line breaking in both \n and \r.

Adapted from https://doc.rust-lang.org/std/io/trait.BufRead.html#method.read_line.