pub struct FileChunker { /* private fields */ }

Implementations

Create a new FileChunker

Divide the file into chunks approximately equal size. Returns a vector of memory-mapped slices that each correspond to a chunk.

If a delimeter is provided, then each chunk will end with an instance of the delimeter, assuming the delimiter exists in the file. This is useful when working with text files that have newline characters, for example. If no delimeter is provided, then each chunk will be the same size, except for the last chunk which may be smaller.

It is assumed that the underlying File will not change while this function is running.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.