forge::revm::interpreter::primitives::alloy_primitives::hex

Module serde

Expand description

Hex encoding with serde.

§Examples

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct Foo {
    #[serde(with = "const_hex")]
    bar: Vec<u8>,
}

Functions§

  • Deserializes a hex string into raw bytes.
  • Serializes data as hex string using lowercase characters.
  • Serializes data as hex string using uppercase characters.