Function std::string::raw::from_utf8Deprecated [-]  [+] [src]

pub unsafe fn from_utf8(bytes: Vec<u8>) -> String

Converts a vector of bytes to a new String without checking if it contains valid UTF-8. This is unsafe because it assumes that the UTF-8-ness of the vector has already been validated.