[−][src]Function argon2::c_str_cow
pub fn c_str_cow<'a>(bytes: &'a [u8]) -> Cow<'a, CStr>
Converts a slice of bytes to a CStr much like c_str
except this will allocate a C string for
you instead with a terminating null byte if one cannot be found inside of the given byte
string.