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