pub trait ToHex { // Required method fn to_hex(&self) -> String; // Provided method fn to_hex_upper(&self) -> String { ... } }
Encodes given value as “0x”-prefixed hex string using lowercase characters