Crate const_hex

source ·
Expand description

githubcrates-iodocs-rs

This crate provides a fast conversion of byte arrays to hexadecimal strings, both at compile time, and at run time.

Extends the hex crate’s implementation with const-eval, a const-generics formatting buffer, similar to itoa’s, and more.

Version requirement: rustc 1.64+

Structs

  • A correctly sized stack allocation for the formatted bytes to be written into.

Enums

  • The error type for decoding a hex string into Vec<u8> or [u8; N].

Constants

Traits

  • Types that can be decoded from a hex string.
  • Encoding values as hex string.

Functions