Skip to main content

Module hex

Module hex 

Source
Expand description

Hexadecimal encoding and decoding for byte slices.

Enums§

DecodeError
Errors from hex decoding.

Functions§

decode
Decodes a hexadecimal string into bytes.
decode_array
Decodes a hexadecimal string into a fixed-size byte array.
encode
Encodes a byte slice as a lowercase hexadecimal string.
encode_prefixed
Encodes a byte slice as a "0x"-prefixed lowercase hexadecimal string.