Function from_boxed_utf8_unchecked
unsafe fn from_boxed_utf8_unchecked(v: crate::boxed::Box<[u8]>) -> crate::boxed::Box<str>
Converts a boxed slice of bytes to a boxed string slice without checking that the string contains valid UTF-8.
Safety
- The provided bytes must contain a valid UTF-8 sequence.
Examples
let smile_utf8 = Boxnew;
let smile = unsafe ;
assert_eq!;