Module converts
Ways to create a str from bytes slice.
Functions
-
from_raw_parts
Creates a
&strfrom a pointer and a length. -
from_raw_parts_mut
Creates a
&mut strfrom a pointer and a length. - from_utf8 Converts a slice of bytes to a string slice.
- from_utf8_mut Converts a mutable slice of bytes to a mutable string slice.
- from_utf8_unchecked Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.
- from_utf8_unchecked_mut Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8; mutable version.