This crate provides a fast conversion of byte arrays to hexadecimal strings, both at compile time, and at run time.
It aims to be a drop-in replacement for the hex
crate, as well as
extending the API with const-eval, a
const-generics formatting buffer, similar to itoa
’s, and more.
Version requirement: rustc 1.64+
serde
.hex
.Vec<u8>
or [u8; N]
.HEX_DECODE_LUT
table.alloc
true
if the input is a valid hex string and can be decoded successfully.true
if the input is a valid hex string.true
if the input is a valid hex string and can be decoded successfully.true
if the input is a valid hex string.input
as a hex string into a Buffer
.alloc
alloc
data
as a hex string using lowercase characters.alloc
data
as a prefixed hex string using lowercase characters.input
as a hex string using lowercase characters into a mutable
slice of bytes output
.input
as a hex string using uppercase characters into a mutable
slice of bytes output
.alloc
data
as a hex string using uppercase characters.data
as a prefixed hex string using uppercase characters.data
as hex string using lowercase characters.data
as hex string using uppercase characters.