file-chunker
This crate provides the FileChunker
type, which is useful for efficiently reading a file
in (approximately) equally-sized parts.
The original use case was to process a log file in chunks, one thread per chunk, and to guarantee that each chunk ended with a full line of text.
Example
use FileChunker;
let file = open.unwrap;
let chunker = new.unwrap;
chunker.chunks
.unwrap
.iter
.for_each;