Skip to main content

parse_with

Function parse_with 

Source
pub fn parse_with<'a, W: Sax<'a>>(src: &'a str, writer: W) -> Option<W::Output>
Expand description

Parse src using a custom [JsonWriter], returning its output.

This is the generic entry point: supply your own writer to produce any output in a single pass over the source. Uses the portable SWAR classifier; works on any architecture.

For maximum throughput on CPUs with AVX-512BW, use [parse_with_zmm].