pub struct StepError { /* private fields */ }Expand description
Failure while tokenizing or semantically parsing a physical file.
Implementations§
Source§impl StepError
impl StepError
Sourcepub const fn is_not_step(&self) -> bool
pub const fn is_not_step(&self) -> bool
Returns whether the input lacked the ISO 10303-21 physical-file marker.
Sourcepub const fn is_real_without_point(&self) -> bool
pub const fn is_real_without_point(&self) -> bool
Returns whether the failure is a real written without the decimal
point ISO 10303-21 requires before its exponent, such as 1E-05.
Self::span covers exactly the number, and Self::detail quotes
it. ParseOptions::accept_real_without_point
reads such numbers as reals instead.
Trait Implementations§
impl Eq for StepError
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()
impl StructuralPartialEq for StepError
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