Module converts

Source
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_partsExperimental
Creates a &str from a pointer and a length.
from_raw_parts_mutExperimental
Creates a &mut str from a pointer and a length.