pub enum ParseWarning {
MissingHeaderSemicolon {
entity_name: String,
span: Span,
},
EmptyAttribute {
span: Span,
},
Ed3SectionDiscarded {
section: String,
span: Span,
},
}Expand description
Non-fatal issues observed during parsing.
The parser admits a handful of spec-bending inputs to survive
real-world STEP files; each tolerance pushes a ParseWarning so
downstream stages can surface what was repaired or discarded. The
IR itself never carries the non-standard form — input is normalised
to a spec-conformant shape before it reaches Graph.
Variants§
MissingHeaderSemicolon
A HEADER entity is missing its terminating ;. The next keyword
is treated as the start of the next entity; the IR shows no trace.
EmptyAttribute
An attribute position is blank — (a, , b) or trailing (a, ).
The slot is normalised to Attribute::Unset (the spec form $).
Ed3SectionDiscarded
A P21 edition 3 section was encountered (ANCHOR, REFERENCE,
or SIGNATURE) and discarded. step-io does not yet model these
sections in the IR.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
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 ParseWarning
impl Debug for ParseWarning
Source§impl PartialEq for ParseWarning
impl PartialEq for ParseWarning
Source§fn eq(&self, other: &ParseWarning) -> bool
fn eq(&self, other: &ParseWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseWarning
Auto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl UnsafeUnpin for ParseWarning
impl UnwindSafe for ParseWarning
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