Module util
Structs
-
Chain
Adapter to chain together two readers.
-
Empty
Empty ignores any data written via Write, and will always be empty
(returning zero bytes) when read via Read.
-
Repeat
A reader which yields one byte over and over and over and over and over and...
-
Sink
A writer which will move data into the void.
-
Take
Reader adapter which limits the bytes read from an underlying reader.
Functions
-
chain
-
empty
Creates a value that is always at EOF for reads, and ignores all data written.
-
repeat
Creates an instance of a reader that infinitely repeats one byte.
-
sink
Creates an instance of a writer which will successfully consume all data.
-
take