pub trait ToHex {
// Required methods
fn to_hex(&self) -> String;
fn from_hex(str: &str) -> Result<Self>
where Self: Sized;
}
Expand description
A generic type that can be converted to a hexadecimal string.
Implementors of this trait should automatically take care of the optional 0x
prefix.