const_hex::serde

Function serialize_upper

source
pub fn serialize_upper<S, T>(data: T, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer, T: AsRef<[u8]>,
Available on crate feature alloc only.
Expand description

Serializes data as hex string using uppercase characters.

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