Skip to main content

parse

Function parse 

Source
pub fn parse<const MAX_NODES: usize, const MAX_STACK: usize, const MAX_ROOTS: usize, const MAX_IDS: usize, const MAX_CLASSES: usize, const MAX_SELECTOR_NODES: usize>(
    input: &str,
    options: ParserOptions,
) -> Result<VDom<'_, MAX_NODES, MAX_STACK, MAX_ROOTS, MAX_IDS, MAX_CLASSES, MAX_SELECTOR_NODES>, ParseError>
Expand description

Parses the given input string using bounded, allocation-free storage.

Capacity parameters bound the number of parsed nodes, parser stack entries, root nodes, tracked IDs, tracked classes, and query selector nodes.