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"Love Jane Forever"),
	Hex::from("0x4c6f7665204a616e6520466f7265766572")
);