pub trait ToHex {
// Required methods
fn to_hex(&self) -> String;
fn from_hex(str: &str) -> Result<Self, GeneralError>
where Self: Sized;
}
Expand description
A generic type that can be converted to a hexadecimal string.
pub trait ToHex {
// Required methods
fn to_hex(&self) -> String;
fn from_hex(str: &str) -> Result<Self, GeneralError>
where Self: Sized;
}
A generic type that can be converted to a hexadecimal string.