Skip to main content

frames_from_text

Function frames_from_text 

Source
pub fn frames_from_text(
    text: &str,
    num_threads: Option<usize>,
) -> Result<Vec<ConFrame>, ParseError>
Expand description

Collect every frame from text.

num_threads is None for the automatic policy (Rayon when the parallel feature is on and the buffer is at least [PARALLEL_BYTES_THRESHOLD]), Some(1) for a sequential iterator, and Some(n) with n >= 2 for an explicit Rayon pool. Builds without parallel always parse sequentially.