Expand description
Utilities for the str primitive type.
Modules§
- patternExperimental The string Pattern API.
Structs§
- An iterator over the bytes of a string slice.
- An iterator over thechars of a string slice, and their positions.
- An iterator over thechars of a string slice.
- An iterator ofu16over the string encoded as UTF-16.
- The return type ofstr::escape_debug.
- The return type ofstr::escape_default.
- The return type ofstr::escape_unicode.
- An iterator over the lines of a string, as string slices.
- LinesAny Deprecated Created with the methodlines_any.
- Created with the methodmatch_indices.
- Created with the methodmatches.
- An error returned when parsing aboolusingfrom_strfails
- Created with the methodrmatch_indices.
- Created with the methodrmatches.
- Created with the methodrsplit.
- Created with the methodrsplitn.
- Created with the methodrsplit_terminator.
- Created with the methodsplit.
- An iterator over the non-ASCII-whitespace substrings of a string, separated by any amount of ASCII whitespace.
- An iterator over the substrings of a string, terminated by a substring matching to a predicate function UnlikeSplit, it contains the matched part as a terminator of the subslice.
- Created with the methodsplitn.
- Created with the methodsplit_terminator.
- An iterator over the non-whitespace substrings of a string, separated by any amount of whitespace.
- An item returned by theUtf8Chunksiterator.
- Errors which can occur when attempting to interpret a sequence ofu8as a string.
Traits§
- Parse a value from a string
Functions§
- Converts a boxed slice of bytes to a boxed string slice without checking that the string contains valid UTF-8.
- Converts a slice of bytes to a string slice.
- Converts a mutable slice of bytes to a mutable string slice.
- Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.
- Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8; mutable version.
- from_raw_ ⚠parts Experimental Creates a&strfrom a pointer and a length.
- from_raw_ ⚠parts_ mut Experimental Creates a&mut strfrom a pointer and a length.