logos.mem.writ.parser

Module mem · package logos-mem

Functions

fnparse

fn parse(h: &Writ, text: &[u8]) -> WAny

Parses JSON-ish text into a fresh document rooted in h.

fnparse_writ

fn parse_writ(text: &[u8]) -> Writ

Parses text into a fresh, OWNED Writ container and stamps it as the root. One-call form of writ_new + parse + set_root; the returned Writ owns the document (RAII-freed on drop) — navigate from h.root() directly. On a parse error the root is null: check h.root().is_null().