Skip to main content

Module diagnostic

Module diagnostic 

Source
Expand description

Structured diagnostics: what a pass found, as a code plus numbers, never text. The host formats the message from its catalogue (the page’s t(), or crate::engine::catalog::format natively) under diag.<code>.* with these parameters, so the zh text it persists stays byte-identical to what the page wrote before the pass moved here. A diagnostic may also name the canvas it concerns, a confidence and a rectangle, and carry a detail payload the journal row stores as it is.

Structs§

Diagnostic
One diagnostic event. frame/time locate a per-frame finding; params are the catalogue’s {{name}} values, in the order the message uses them. canvas, confidence, region and detail are the row’s own fields of those names, when it has them.

Enums§

Severity
How serious a diagnostic is; the same three levels the page’s Severity has.
Value
A detail payload: numbers, flags, text, objects whose fields keep the order they are listed in, and lists.