Skip to main content

Module no_prefix

Module no_prefix 

Source
Expand description

Hex encoding with serde.

§Examples

use serde::{Serialize, Deserialize};

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

Re-exports§

pub use super::deserialize;

Functions§

serializealloc
Serializes data as hex string using lowercase characters.
serialize_upperalloc
Serializes data as hex string using uppercase characters.