Expand description
Ways to create a str
from bytes slice.
Functions§
- 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.
- from_
raw_ ⚠parts Experimental - Creates a
&str
from a pointer and a length. - from_
raw_ ⚠parts_ mut Experimental - Creates a
&mut str
from a pointer and a length.