Module genio::bufio [] [src]

Contains traits and impls for buffering.

Traits

BufRead

A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.

BufReadProgress

When reading from reader, sometimes it's beneficial to read n bytes at once. However, BufRead itself doesn't guarantee that more bytes will be available when calling fill_buf multiple times. This trait provides fill_progress and require_bytes functions with that guarantee.

BufWrite

When writing, it might be better to serialize directly into a buffer. This trait allows such situation.

BufWriteRequire

This trait allows requiring buffer of specified size.