Module genio::util [] [src]

This module contains various generic utilities related to IO.

Structs

Bytes

Represents reader as iterator over bytes.

Chain

Chains two readers.

Empty

This reader is empty - always returns 0 from read method.

Repeat

Reader that infinitely repeats single byte.

RepeatBytes

Reader repeating a sequence of bytes infinitely.

Restarting

Restarts all interrupted operations.

Sink

Silently drops everything that is written to it.

WriteTrunc

Truncates writing so that at most n bytes in total are written into the writer.

Functions

copy

Copies the entire contents of a reader into a writer.