pub fn to_str<'a>(bytes: &'a [u8]) -> Result<&'a str, CryptError>
Expand description
Convert a nul-terminated byte slice into a borrowed string.
pub fn to_str<'a>(bytes: &'a [u8]) -> Result<&'a str, CryptError>
Convert a nul-terminated byte slice into a borrowed string.