array_bytes

Function hexify_hex_bytes

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

Hexify the bytes which are already in hex.

This is useful when you are interacting with IO.

ยงExamples

assert_eq!(
	array_bytes::hexify_hex_bytes(b"4c6f7665204a616e6520466f7265766572"),
	Ok("4c6f7665204a616e6520466f7265766572"),
);