Skip to main content

Module print_result

Module print_result 

Source
Expand description

Output formatting carriers — PrintResult and PrintSpan.

Per ADR-006 §2.7.4 (output adapter ruling), these types live in shape-runtime rather than shape-value. They are runtime-tier formatting concerns with no value-tier dependency: the structure carries a rendered string and a vector of spans (literals or value references), and is consumed by the crate::output_adapter::OutputAdapter trait.

The pre-bulldozer placement under shape-value (as the RareHeapData::PrintResult arm) was load-bearing only because ValueWord::from_print_result returned a tagged heap pointer to a PrintResult. After ValueWord deletion, output adapters return a shape_value::KindedSlot directly; the PrintResult carrier moves up to the runtime tier where it is consumed.

Structs§

PrintResult
Output of a print() call: rendered string plus per-span metadata.

Enums§

PrintSpan
A single span within a rendered print() output.