pub fn from_utf8_mut(input: &mut [u8]) -> Result<&mut str, Utf8Error>
Analogue to [std::str::from_utf8_mut()].
std::str::from_utf8_mut()
Checks if the passed mutable byte sequence is valid UTF-8 and returns a mutable [std::str] reference to the passed byte slice wrapped in Ok() if it is.
std::str
Ok()
Will return the zero-sized Err(Utf8Error) on if the input contains invalid UTF-8.
Utf8Error