byte_array_to_string

Function byte_array_to_string 

Source
pub fn byte_array_to_string(bytes: &[u8]) -> String
Expand description

Convert a byte array to a String.

ยงExamples

let byte_array: Vec<u8> = vec!(0x0F, 0x5F, 0xAA);
let repr: String = stringutils::byte_array_to_string(&byte_array);

println!("Bytes: {}", repr);