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.

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+

Modules§

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.
  • ToHexDeprecated
    Encoding values as hex string.
  • Encoding values as hex string.

Functions§

  • Returns true if the input is a valid hex string and can be decoded successfully.
  • Returns true if the input is a valid hex string.
  • Returns true if the input is a valid hex string and can be decoded successfully.
  • Returns true if the input is a valid hex string.
  • Decode a hex string into a fixed-length byte-array.
  • Encodes input as a hex string into a Buffer.
  • decodealloc
    Decodes a hex string into raw bytes.
  • Decode a hex string into a fixed-length byte-array.
  • Decode a hex string into a mutable bytes slice.
  • Deserializes a hex string into raw bytes.
  • encodealloc
    Encodes data as a hex string using lowercase characters.
  • Encodes data as a prefixed hex string using lowercase characters.
  • Encodes input as a hex string using lowercase characters into a mutable slice of bytes output.
  • Encodes input as a hex string using uppercase characters into a mutable slice of bytes output.
  • Encodes data as a hex string using uppercase characters.
  • Encodes data as a prefixed hex string using uppercase characters.
  • Serializes data as hex string using lowercase characters.
  • Serializes data as hex string using uppercase characters.