rayon::split_producerType Alias SplitInclusiveProducer
Source pub(crate) type SplitInclusiveProducer<'p, P, V> = SplitProducer<'p, P, V, true>;
struct SplitInclusiveProducer<'p, P, V> {
data: V,
separator: &'p P,
tail: usize,
}
Marks the endpoint beyond which we’ve already found no separators.
Implementations
Common fold_with
implementation, integrating SplitTerminator
’s
need to sometimes skip its final empty item.
Trait Implementations
The type of item returned by this producer.
Split midway into a new producer if possible, otherwise return None
.
Iterate the producer, feeding each element to folder
, and
stop when the folder is full (or all elements have been consumed).