to_hex

Function to_hex 

Source
pub fn to_hex(data: &[u8]) -> String
Expand description

Convert bytes to hexadecimal string.

ยงExample

use quantacore::utils::to_hex;

let hex = to_hex(&[0xde, 0xad, 0xbe, 0xef]);
assert_eq!(hex, "deadbeef");