Skip to main content

Module document

Module document 

Source
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.
NodeSpec
The blueprint for a node handed to Document::alloc / Document::alloc_child. Carries only the fields a caller legitimately chooses: kind, span, and attributes. The arena supplies the id, the empty children list, and the content_hash/style_id placeholders, so an invalid node is unrepresentable at the call site.
StyleId
Identifier for a resolved style bundle.

Enums§

AttrValue
Attribute value carried on a semantic Node.
NodeKind
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 String keys are fine for the stub.