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.
- Record
Damage - A model’s reader diagnostics, sorted into what a resolution must refuse.
- Source
Position - A line and column in the source text, both 1-based.
- Unclassified
Diagnostic - A diagnostic
RecordDamage::ofcannot classify.
Enums§
- Diagnostic
Kind - What a
Diagnosticis about, for a caller that acts on it instead of printing it. - Severity
- How serious a non-fatal finding is.