Skip to main content

Module tree

Module tree 

Source
Expand description

In-memory tree representation and full-tree wire format.

See docs/PROTOCOL.md § “Tree representation” for the wire spec. Each node line is:

<ref> <role> <label> [op[,op]...] [k=v]...

…prefixed by two spaces of indent per nesting level. The encoder emits a canonical form (attributes sorted alphabetically, ops in source order via std::collections::BTreeSet); the parser is tolerant of either ordering.

Structs§

Node
One node in the a11y tree.
Ref
A stable session-scoped element identifier. Refs are positive integers; 0 is reserved as the wire sentinel for “root level” in delta operations.
Tree
A full a11y tree as exchanged on the wire.
TreeIter
Pre-order iterator over a tree.