Module display

Module display 

Source
Expand description

2026-09-28: met circuit display: the human view of one fusion plan. It builds a styled document (lines of spans, each span a semantic Style) from the same circuit and plan met circuit show prints; the CLI maps styles to colours.

Owner: metrale-circuit. Invariants:

  • Pure: no environment, no TTY probe, no ANSI. Width and glyph set are inputs.
  • No line is wider than DisplayOpts::width; below COMPACT_BELOW columns the layout drops the side annotation column instead of wrapping boxes.
  • A materialised edge is never drawn inside a fused frame: inside a frame every hand-off is on-chip, and what the kernel also writes is named on the frame’s bottom edge.

Re-exports§

pub use glyphs::Glyphs;

Modules§

glyphs
2026-09-28: The two glyph sets of met circuit display: Unicode box drawing, and a pure ASCII fallback for dumb terminals.

Structs§

DisplayInfo
2026-09-28: Facts about the instance the plan came from, for the header card.
DisplayOpts
2026-09-28: Rendering options.
Document
2026-09-28: A rendered document.
Line
2026-09-28: One output line.
Span
2026-09-28: A run of text in one style.

Enums§

DisplayError
2026-09-28: Why a document was not produced.
Expand
2026-09-28: How much of the model to draw.
Style
2026-09-28: What a span means; the CLI picks its colour.

Constants§

COMPACT_BELOW
2026-09-28: Below this width the diagrams move annotations onto their own lines.
MIN_WIDTH
2026-09-28: The narrowest width the renderer lays out.

Functions§

display
2026-09-28: Render plan of circuit.