Skip to main content

Module node

Module node 

Source
Expand description

The node tree.

Ports core/HTMLTag.swift (state), core/Fragment.swift and core/RawHTML.swift.

Winged-Swift models fragments and raw markup as subclasses of HTMLTag that override write(into:). Rust models the same thing as a closed enum with a match in the writer. That is strictly better here: the tree becomes Send + Sync for free, which Winged-Swift’s own ROADMAP.md lists as an unresolved 3.0 problem (“tag trees are not Sendable”), and which is what makes the parallel feature sound.

Enums§

Node
A node in the HTML tree.