pub fn encode_upper<T: AsRef<[u8]>>(data: T) -> String
Available on crate feature
alloc
only.Expand description
Encodes data
as a hex string using uppercase characters.
Apart from the characters’ casing, this works exactly like encode()
.
§Examples
assert_eq!(const_hex::encode_upper("Hello world!"), "48656C6C6F20776F726C6421");
assert_eq!(const_hex::encode_upper([1, 2, 3, 15, 16]), "0102030F10");