Function array_bytes::bytes2hex [−][src]
pub fn bytes2hex(prefix: impl AsRef<str>, bytes: impl AsRef<[u8]>) -> Hex
Expand description
Bytes
to Hex
Examples
use array_bytes::Hex; assert_eq!( array_bytes::bytes2hex("0x", b"I Love You"), Hex::from("0x49204c6f766520596f75") );