Module bitcoin_private::hex::buf_encoder
source · Expand description
Implements a buffered encoder.
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
- Hex-encodes bytes into the provided buffer.
- A byte buffer that can only be written-into.
Traits
- Trait for types that can be soundly converted to
OutBytes
. - A buffer with compile-time-known length.