Function array_bytes::hex_bytes2hex_str_unchecked
source · pub unsafe fn hex_bytes2hex_str_unchecked(bytes: &[u8]) -> &str
Expand description
Just like hex_bytes2hex_str
but without the checking.
§Safety
See the str::from_utf8_unchecked
.
§Examples
unsafe {
assert_eq!(
array_bytes::hex_bytes2hex_str_unchecked(b"0x4c6f7665204a616e6520466f7265766572"),
"0x4c6f7665204a616e6520466f7265766572",
);
}