Module core::strExperimental
[-]
[+]
[src]
String manipulation
For more details, see std::str
Modules
raw | Unsafe operations |
Structs
Bytes | External iterator for a string's bytes.
Use with the |
CharIndices | 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 | Iterator for the char (representing Unicode Scalar Values) of a string |
Lines | An iterator over the lines of a string, separated by |
LinesAny | An iterator over the lines of a string, separated by either |
MatchIndices | An iterator over the start and end indices of the matches of a substring within a larger string |
RSplitN | Return type of |
Split | Return type of |
SplitN | Return type of |
SplitStr | An iterator over the substrings of a string separated by a given search string |
SplitTerminator | Return type of |
Enums
Utf8Error | Errors which can occur when attempting to interpret a byte slice as a |
Traits
CharEq | Something that can be used to compare against a character |
FromStr | A trait to abstract the idea of creating a new instance of a type from a string. |
Str | Any string that can be represented as a slice |
StrExt | Methods for string slices |
Functions
from_c_str | Constructs a static string slice from a given raw pointer. |
from_str | A utility function that just calls FromStr::from_str |
from_utf8 | Converts a slice of bytes to a string slice without performing any allocations. |
from_utf8_unchecked | Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8. |
is_utf8 | Determines if a vector of bytes contains valid UTF-8. |
truncate_utf16_at_nul | Deprecated function |
utf8_char_width | Given a first byte, determine how many bytes are in this UTF-8 character |
Type Definitions
StrSplits | Deprecated |