Trait array_bytes::Hex
source · pub trait Hex {
// Required method
fn hex(self, prefix: &str) -> String;
}
Expand description
Convert the given type to hex.
§Examples
use array_bytes::Hex;
assert_eq!(28772997619311_u128.hex("0x"), "0x1a2b3c4d5e6f");