Expand description
Implements a buffered encoder.
This is a low-level module, most uses should be satisfied by the display module instead.
The main type of this module is BufEncoder which provides buffered hex encoding. Such is
faster than the usual write!(f, "{02x}", b)? in a for loop because it reduces dynamic
dispatch and decreases the number of allocations if a String is being created.
Structs§
- BufEncoder
- Hex-encodes bytes into the provided buffer.
- OutBytes
- A byte buffer that can only be written-into.
Traits§
- AsOut
Bytes - Trait for types that can be soundly converted to
OutBytes. - Fixed
LenBuf - A buffer with compile-time-known length.