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
- Bytes
Producer ๐ - Parallel iterator over the characters of a string, with their positions
- Char
Indices ๐Producer - Parallel iterator over the characters of a string
- Chars
Producer ๐ - Parallel iterator over a string encoded as UTF-16
- Encode
Utf16 ๐Producer - Parallel iterator over lines in a string
- Parallel iterator over substrings that match a pattern, with their positions
- Match
Indices ๐Producer - Parallel iterator over substrings that match a pattern
- Matches
Producer ๐ - 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 fromstr::is_char_boundary
) - no_
carriage_ ๐return - not_
empty ๐ - offset ๐
- split ๐Try to split a string near the midpoint.