We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::str::from_utf8 takes &[u8] which means that you can't create a string from a &[c_char] in general.
std::str::from_utf8
&[u8]
&[c_char]
Instead, from_utf8 should look like this:
pub fn from_utf8<T: BytesContainer>(v: &T) -> Option<&str>
Then implement BytesContainer for &[i8].