Module write

Source
Expand description

This module contains writer-based structs and traits.

Because std::io::Write is only limited to std and not core, we provide our own Writer.

Structs§

SizeWriter
A writer that counts how many bytes were written. This is useful for e.g. pre-allocating buffers bfeore writing to them.
SliceWriter
A helper struct that implements Writer for a &[u8] slice.

Traits§

Writer
Trait that indicates that a struct can be used as a destination to encode data too. This is used by Encode