pub trait ToHex {
// Required methods
fn to_hex(&self) -> String;
fn to_lower_hex(&self) -> String;
fn to_upper_hex(&self) -> String;
}
Expand description
Extension trait to convert byte slices and byte vectors to hex strings.
Required Methods§
Sourcefn to_lower_hex(&self) -> String
fn to_lower_hex(&self) -> String
Converts the byte slice or vector to a hex string in lowercase.
Sourcefn to_upper_hex(&self) -> String
fn to_upper_hex(&self) -> String
Converts the byte slice or vector to a hex string in uppercase.