[−][src]Struct mshio::error::MshParserError
Error type returned by the crate when parsing fails
Fields
backtrace: Vec<(I, MshParserErrorKind)>
Error backtrace that contains per level a reference into the input where the error ocurred and the corresponding error kind
Implementations
impl<I> MshParserError<I>
[src]
pub fn begin_msh_errors(&self) -> impl Iterator<Item = &(I, MshParserErrorKind)>
[src]
Iterator that skips all errors in the beginning of the backtrace that are not actual MSH format errors (i.e. internal nom parser errors)
pub fn filter_msh_errors(
&self
) -> impl Iterator<Item = &(I, MshParserErrorKind)>
[src]
&self
) -> impl Iterator<Item = &(I, MshParserErrorKind)>
Iterator over all errors in the backtrace that are actual MSH format errors (i.e. filters out all internal nom parser errors)
pub fn first_msh_error(&self) -> Option<MshParserErrorKind>
[src]
Returns the kind of the first error in the backtrace that is an actual MSH format error kind (i.e. skips internal nom parser errors)
impl<I: Clone> MshParserError<I>
[src]
pub fn filtered_backtrace(&self) -> Vec<(I, MshParserErrorKind)>
[src]
Returns a backtrace containing only the errors that are actual MSH format errors (i.e. without internal nom parser errors)
Trait Implementations
impl<I: Debug> Debug for MshParserError<I>
[src]
impl<'_, I: Debug + HexDisplay + ?Sized> Display for MshParserError<&'_ I>
[src]
impl<'_, I: Debug + HexDisplay + ?Sized> Error for MshParserError<&'_ I>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<I: Debug, E: Into<MshParserError<I>>> From<Err<E>> for MshParserError<I>
[src]
Convert a nom::Err to MshParserError
impl<I> ParseError<I> for MshParserError<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for MshParserError<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for MshParserError<I> where
I: Send,
I: Send,
impl<I> Sync for MshParserError<I> where
I: Sync,
I: Sync,
impl<I> Unpin for MshParserError<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for MshParserError<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,