Skip to main content

parse_nested

Function parse_nested 

Source
pub fn parse_nested(
    parser: &Arc<Tabnas>,
    src: &str,
    meta: &Value,
    depth: usize,
) -> Result<Value, TabnasError>
Expand description

Parse src as a source nested depth levels inside the document.

Every SEGMENT levels the parse is run on a fresh thread with a large stack and joined, so a long chain of sources cannot exhaust the caller’s stack. The call is synchronous either way: nothing outlives it, and the value comes back on the caller’s thread.