Skip to main content

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§

Bytes
An iterator over the bytes of a string slice.
CharIndices
An iterator over the chars of a string slice, and their positions.
Chars
An iterator over the chars of a string slice.
SplitInclusive
An iterator over the substrings of a string, terminated by a substring matching to a predicate function Unlike Split, it contains the matched part as a terminator of the subslice.
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.
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.
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.