Expand description
Ways to create a str from bytes slice.
Re-exportsยง
use super::Utf8Error;๐use super::validations::run_utf8_validation;๐use crate::mem;๐use crate::ptr;๐
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
&strfrom a pointer and a length. - from_
raw_ โparts_ mut Experimental - Creates a
&mut strfrom a pointer and a length.