Module core::str[src]
String manipulation
For more details, see std::str
Primitive Types
| str | String manipulation |
Modules
| raw | Unsafe operations |
Structs
| CharOffsets | External iterator for a string's characters and their byte offsets.
Use with the |
| CharRange | Struct that contains a |
| CharSplits | An iterator over the substrings of a string, separated by |
| CharSplitsN | An iterator over the substrings of a string, separated by |
| Chars | External iterator for a string's characters.
Use with the |
| MatchIndices | An iterator over the start and end indices of the matches of a substring within a larger string |
| StrSplits | An iterator over the substrings of a string separated by a given search string |
| Utf16Items | An iterator that decodes UTF-16 encoded codepoints from a vector
of |
Enums
| Utf16Item | The possibilities for values decoded from a |
Traits
| CharEq | Something that can be used to compare against a character |
| Str | Any string that can be represented as a slice |
| StrSlice | Methods for string slices |
Functions
| eq_slice | Bytewise slice equality NOTE: This function is (ab)used in rustc::middle::trans::_match to compare &[u8] byte slices that are not necessarily valid UTF-8. |
| from_utf8 | Converts a vector to a string slice without performing any allocations. |
| is_utf16 | Determines if a vector of |
| is_utf8 | Determines if a vector of bytes contains valid UTF-8. |
| truncate_utf16_at_nul | Return a slice of |
| utf16_items | Create an iterator over the UTF-16 encoded codepoints in |
| utf8_char_width | Given a first byte, determine how many bytes are in this UTF-8 character |
Type Definitions
| AnyLines | An iterator over the lines of a string, separated by either |
| Bytes | External iterator for a string's bytes.
Use with the |
| Words | An iterator over the words of a string, separated by a sequence of whitespace |