Expand description
Parallel iterator types for strings
You will rarely need to interact with this module directly unless you need to name one of the iterator types.
Note: ParallelString::par_split()
and par_split_terminator()
reference a Pattern
trait which is not visible outside this crate.
This trait is intentionally kept private, for use only by Rayon itself.
It is implemented for char
, &[char]
, [char; N]
, &[char; N]
,
and any function or closure F: Fn(char) -> bool + Sync + Send
.
Modulesยง
- private ๐We hide the
Pattern
trait in a private module, as its API is not meant for general consumption. If we could have privacy on trait items, then it would be nicer to have its basic existence and implementors public while keeping all of the methods private.
Macrosยง
- impl_pattern ๐
Structsยง
- Parallel iterator over the bytes of a string
- BytesProducer ๐
- Parallel iterator over the characters of a string, with their positions
- CharIndicesProducer ๐
- Parallel iterator over the characters of a string
- CharsProducer ๐
- Parallel iterator over a string encoded as UTF-16
- EncodeUtf16Producer ๐
- Parallel iterator over lines in a string
- Parallel iterator over substrings that match a pattern, with their positions
- MatchIndicesProducer ๐
- Parallel iterator over substrings that match a pattern
- MatchesProducer ๐
- Parallel iterator over substrings separated by a pattern
- Parallel iterator over substrings separated by ASCII whitespace
- Parallel iterator over substrings separated by a pattern
- Parallel iterator over substrings separated by a terminator pattern
- Parallel iterator over substrings separated by whitespace
Traitsยง
- Parallel extensions for strings.
Functionsยง
- find_char_midpoint ๐Find the index of a character boundary near the midpoint.
- is_ascii_whitespace ๐
- is_char_boundary ๐Test if a byte is the start of a UTF-8 character. (extracted from
str::is_char_boundary
) - no_carriage_return ๐
- not_empty ๐
- offset ๐
- split ๐Try to split a string near the midpoint.