Expand description
The lowered semantic document graph (manifest §5, §6 stage 2).
Document owns every Node and hands them out through their stable
NodeId. Each node carries a NodeKind, a SourceSpan, a
ContentHash, a StyleId, and an AttrMap of AttrValues.
Structs§
- Document
- The lowered semantic document graph (manifest §5, §6 stage 2).
- Node
- A semantic document node (manifest §5.1).
- NodeId
- Stable identifier for a document node.
- Node
Spec - The blueprint for a node handed to
Document::alloc/Document::alloc_child. Carries only the fields a caller legitimately chooses:kind,span, andattributes. The arena supplies theid, the emptychildrenlist, and thecontent_hash/style_idplaceholders, so an invalid node is unrepresentable at the call site. - StyleId
- Identifier for a resolved style bundle.
Enums§
- Attr
Value - Attribute value carried on a semantic
Node. - Node
Kind - The kinds of nodes Mosaic recognises (manifest §5.1).
Type Aliases§
- AttrMap
- Attribute map carried on each node. Keys are interned strings in a
later iteration; for now plain
Stringkeys are fine for the stub.