pub trait AsciiBufRead: BufRead {
    fn read_ascii_line(
        &mut self,
        buf: &mut AsciiString
    ) -> Result<usize, AsciiReadError> { ... } fn ascii_lines(self) -> AsciiLines<Self>
    where
        Self: Sized
, { ... } }

Provided Methods§

Read all bytes until a newline is reached, and append them to the provided buffer.

This function will read bytes from the underlying stream until the newline delimiter is found. Once found, all bytes, including the delimiter, will be appended to buf.

If successful, this function returns the total number of bytes read.

If this function returns Ok(0), the stream has reached EOF.

Returns an iterator over the lines of this reader.

The iterator yields instances of Result<AsciiString, AsciiReadError>. Each string will not have a newline byte or CRLF at the end.

Implementations on Foreign Types§

Implementors§