pub struct StepReport {
pub entity_counts: BTreeMap<String, usize>,
pub total_entities: usize,
pub losses: Vec<LossNote>,
}Expand description
Summary of a completed STEP export.
A report is returned only after the entire file reaches the output sink. Loss notes describe omitted or reduced IR content and do not prevent export.
Fields§
§entity_counts: BTreeMap<String, usize>DATA instance counts keyed by entity keyword.
Keys are sorted. Complex rational B-spline instances are counted under
their B_SPLINE_*_WITH_KNOTS keyword.
total_entities: usizeTotal DATA instances, including product, context, and geometry records.
losses: Vec<LossNote>Omitted, normalized, or reduced IR content.
Notes use cadmpeg_ir::LossNote categories and severities. Callers
should inspect the complete list rather than relying only on
Self::error_count.
Implementations§
Source§impl StepReport
impl StepReport
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Counts loss notes whose severity is at least Severity::Error.
Trait Implementations§
Source§impl Clone for StepReport
impl Clone for StepReport
Source§fn clone(&self) -> StepReport
fn clone(&self) -> StepReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepReport
impl Debug for StepReport
Source§impl PartialEq for StepReport
impl PartialEq for StepReport
impl StructuralPartialEq for StepReport
Auto Trait Implementations§
impl Freeze for StepReport
impl RefUnwindSafe for StepReport
impl Send for StepReport
impl Sync for StepReport
impl Unpin for StepReport
impl UnsafeUnpin for StepReport
impl UnwindSafe for StepReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more