cast::revm::interpreter::primitives::alloy_primitives::hex

Function serialize_upper

pub fn serialize_upper<S, T>(
    data: T,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer, T: AsRef<[u8]>,
Expand description

Serializes data as hex string using uppercase characters.

Apart from the characters’ casing, this works exactly like serialize.