alloy_serde

Function serialize_hex_string_no_prefix

source
pub fn serialize_hex_string_no_prefix<S, T>(
    x: T,
    s: S,
) -> Result<S::Ok, S::Error>
where S: Serializer, T: AsRef<[u8]>,
Expand description

Serialize a byte vec as a hex string without the “0x” prefix.

This behaves the same as hex::encode.