hex_conservative::serde

Function serialize_upper

Source
pub fn serialize_upper<S, T>(data: T, serializer: S) -> Result<S::Ok, S::Error>
Available on crate feature serde only.
Expand description

Serializes data as hex string using uppercase characters.

We only serialize as hex if the serializer is human readable, if not we call through to the Serialize implementation for data.