Expand description
Parsing a frame into a navigable node tree.
A node is [list tag][size][tag][attr pairs...][content?]. The size counts
every slot after the list header, so an even remainder means attributes
only and an odd one means a trailing body.
Nothing is copied and nothing is allocated. A NodeRef holds the slice
starting at its own list tag and re-walks it on demand; the encoding is
self-delimiting, so a node does not need to know where it ends. Parsing
validates the whole tree up front, which is what makes every accessor
afterwards infallible.
Structs§
- Attrs
- Iterator over a node’s attributes.
- Children
- Iterator over a node’s children.
- NodeRef
- A node, borrowing from the frame it was parsed from.
- Parser
- Parses frames into node trees.
Enums§
- Content
- What a node carries after its attributes.
Constants§
- DEFAULT_
MAX_ DEPTH - How deep a frame may nest before the parser refuses it.