Expand description
Bytelines is a simple library crate which offers line iteration for
BufRead via &[u8] rather than String.
Due to the removal of checking for String validity, this is typically
much faster for reading in raw data and much more flexible. The APIs
offered in this crate are intended to function exactly the same as the
lines function inside the BufRead trait, except that the bytes which
precede the line delimiter are not validated.
Performance of ByteLines is practically identical
to that of writing a loop manually, due to the avoidance of allocations.
Structs
Provides async iteration over bytes of input, split by line.
Provides iteration over bytes of input, split by line.
Iterator implementation of ByteLines to provide Iterator APIs.
Traits
Represents anything which can provide iterators of byte lines.
Functions
Creates a new line reader from a stdlib BufRead.
Creates a new line reader from a Tokio AsyncBufRead.