Struct Error

struct Error<I> { ... }

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.

Implementations

impl<I> Freeze for Error<I>

impl<I> From for Error<I>

fn from(e: (I, ErrorKind)) -> Self

impl<I> From for Error<I>

fn from(e: (I, ErrorKind)) -> Self

impl<I> From for Error<I>

fn from(e: Error<I>) -> Self

impl<I> ParseError for Error<I>

fn from_error_kind(input: I, kind: ErrorKind) -> Self
fn append(_: I, _: ErrorKind, other: Self) -> Self

impl<I> RefUnwindSafe for Error<I>

impl<I> Send for Error<I>

impl<I> Sync for Error<I>

impl<I> Unpin for Error<I>

impl<I> UnwindSafe for Error<I>

impl<I: $crate::fmt::Debug> Debug for Error<I>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T> Any for Error<I>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Error<I>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Error<I>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Error<I>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Error<I>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Error<I>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Error<I>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>