pub trait ToHex { // Required method fn to_hex(&self) -> String; }
Trait for objects that can be serialized as hex strings.
Converts to a hexadecimal representation of the object.