Skip to main content

par_extract

Function par_extract 

Source
pub fn par_extract<T, F>(pages: &[Vec<ContentElement>], op: F) -> Vec<T>
where T: Send, F: Fn(&[ContentElement]) -> T + Sync + Send,
Expand description

Parallel fold — map each page to a value of type T and collect results.

Useful for gathering per-page statistics or metadata without modifying pages.