[−][src]Trait rayon::str::ParallelString
Parallel extensions for strings.
Required methods
fn as_parallel_string(&self) -> &str
Returns a plain string slice, which is used to implement the rest of the parallel methods.
Provided methods
fn par_chars(&self) -> Chars
Returns a parallel iterator over the characters of a string.
fn par_split<P: Pattern>(&self, separator: P) -> Split<P>
Returns a parallel iterator over substrings separated by a
given character or predicate, similar to str::split
.
Note: the Pattern
trait is private, for use only by Rayon itself.
It is implemented for char
and any F: Fn(char) -> bool + Sync + Send
.
fn par_split_terminator<P: Pattern>(&self, terminator: P) -> SplitTerminator<P>
Returns a parallel iterator over substrings terminated by a
given character or predicate, similar to str::split_terminator
.
It's equivalent to par_split
, except it doesn't produce an empty
substring after a trailing terminator.
Note: the Pattern
trait is private, for use only by Rayon itself.
It is implemented for char
and any F: Fn(char) -> bool + Sync + Send
.
fn par_lines(&self) -> Lines
Returns a parallel iterator over the lines of a string, ending with an
optional carriage return and with a newline (\r\n
or just \n
).
The final line ending is optional, and line endings are not included in
the output strings.
fn par_split_whitespace(&self) -> SplitWhitespace
Returns a parallel iterator over the sub-slices of a string that are separated by any amount of whitespace.
As with str::split_whitespace
, 'whitespace' is defined according to
the terms of the Unicode Derived Core Property White_Space
.