Module core::str::rawDeprecated [-]  [+] [src]

Unsafe operations

Functions

c_str_to_static_slice

Form a slice from a C string. Unsafe because the caller must ensure the C string has the static lifetime, or else the return value may be invalidated later.

from_utf8

Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.

slice_bytes

Takes a bytewise (not UTF-8) slice from a string.

slice_unchecked

Takes a bytewise (not UTF-8) slice from a string.