#[non_exhaustive]pub enum StepError {
NotStep(String),
Syntax {
offset: usize,
detail: String,
},
MissingEntityId {
offset: usize,
},
NonFiniteReal {
entity: EntityId,
slot: usize,
},
Io(String),
}Expand description
Failures specific to reading or writing IFC STEP text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotStep(String)
The bytes do not begin with the ISO-10303-21 magic.
Syntax
Malformed syntax at a known byte offset.
MissingEntityId
A record in the DATA section had no #id= prefix.
NonFiniteReal
The model contains a REAL value Part 21 cannot represent.
Fields
Io(String)
Underlying I/O failure.
Trait Implementations§
Source§impl Error for StepError
impl Error for StepError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StepError
impl RefUnwindSafe for StepError
impl Send for StepError
impl Sync for StepError
impl Unpin for StepError
impl UnsafeUnpin for StepError
impl UnwindSafe for StepError
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