Skip to main content

Module diagnostic

Module diagnostic 

Source
Expand description

Codec-neutral, non-fatal problems found while reading a model.

A codec that recovers from damaged input must be able to say what it dropped: silent recovery turns a corrupt file into a plausible-looking model with no trace of the loss. These diagnostics are attached to the Model rather than returned separately so the information survives being passed around an application.

The type is codec-neutral on purpose. STEP reports byte offsets, ifcXML would report element positions, so the location is an optional byte range rather than a STEP span, and this crate names no codec type.

Structs§

Diagnostic
A non-fatal problem found while reading a model.
RecordDamage
A model’s reader diagnostics, sorted into what a resolution must refuse.
SourcePosition
A line and column in the source text, both 1-based.
UnclassifiedDiagnostic
A diagnostic RecordDamage::of cannot classify.

Enums§

DiagnosticKind
What a Diagnostic is about, for a caller that acts on it instead of printing it.
Severity
How serious a non-fatal finding is.