1 2 3 4 5 6
pub fn to_hex_string(bytes: &Vec<u8>) -> String { return bytes.iter() .map(|b| format!("{:02x}", b)) .collect::<Vec<_>>() .join(""); }
1 2 3 4 5 6
pub fn to_hex_string(bytes: &Vec<u8>) -> String { return bytes.iter() .map(|b| format!("{:02x}", b)) .collect::<Vec<_>>() .join(""); }