pub struct Error<I> {
pub input: I,
pub error: ErrorKind,
}
Expand description
Parsing errors specific to C parsing.
This is a superset of (I, nom::ErrorKind)
that includes the additional errors specified by
ErrorKind
.
Fields§
§input: I
The remainder of the input stream at the time of the error.
error: ErrorKind
The error that occurred.
Trait Implementations§
Source§impl<I> ParseError<I> for Error<I>
impl<I> ParseError<I> for Error<I>
Source§fn from_error_kind(input: I, kind: ErrorKind) -> Self
fn from_error_kind(input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_: I, _: ErrorKind, other: Self) -> Self
fn append(_: I, _: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Auto Trait Implementations§
impl<I> Freeze for Error<I>where
I: Freeze,
impl<I> RefUnwindSafe for Error<I>where
I: RefUnwindSafe,
impl<I> Send for Error<I>where
I: Send,
impl<I> Sync for Error<I>where
I: Sync,
impl<I> Unpin for Error<I>where
I: Unpin,
impl<I> UnwindSafe for Error<I>where
I: UnwindSafe,
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