pub fn hex_bytes2hex_str(bytes: &[u8]) -> Result<&str>
Expand description

Convert hex bytes to hex string.

This is useful when you are interacting with the IO.

Examples

assert_eq!(
	array_bytes::hex_bytes2hex_str(b"0x4c6f7665204a616e6520466f7265766572"),
	Ok("0x4c6f7665204a616e6520466f7265766572"),
);