Function from_utf8_unchecked_mut
unsafe const fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str
Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8; mutable version.
This is an alias to str::from_utf8_unchecked_mut.
See the immutable version, [from_utf8_unchecked()] for documentation and safety requirements.
Examples
Basic usage:
use str;
let mut heart = vec!;
let heart = unsafe ;
assert_eq!;