Module str

Module str 

1.6.0 · Source
Expand description

String manipulation.

For more details, see the std::str module.

Modules§

patternExperimental
The string Pattern API.

Structs§

Chars
An iterator over the chars of a string slice.
Utf8Error
Errors which can occur when attempting to interpret a sequence of u8 as a string.

Traits§

FromStr
Parse a value from a string

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.
next_code_pointExperimental
Reads the next code point out of a byte iterator (assuming a UTF-8-like encoding).
utf8_char_widthExperimental
Given a first byte, determines how many bytes are in this UTF-8 character.