Module hex

Source
Expand description

§Hex encoding and decoding

Structs§

HexIterator
Iterator over a hex-encoded string slice which decodes hex and yields bytes.

Enums§

Error
Hex decoding error

Traits§

FromHex
Trait for objects that can be deserialized from hex strings
ToHex
Trait for objects that can be serialized as hex strings

Functions§

format_hex
Output hex into an object implementing fmt::Write, which is usually more efficient than going through a String using ToHex.
format_hex_reverse
Output hex in reverse order; used for Sha256dHash whose standard hex encoding has the bytes reversed.