Struct ParseError

struct ParseError<I, E> { ... }

See Parser::parse

Implementations

impl<I, E> ParseError<I, E>

fn input(self: &Self) -> &I

The Stream at the initial location when parsing started

fn offset(self: &Self) -> usize

The location in ParseError::input where parsing failed

To get the span for the char this points to, see ParseError::char_span.

Note: This is an offset, not an index, and may point to the end of input (input.len()) on eof errors.

fn inner(self: &Self) -> &E

The original ParserError

fn into_inner(self: Self) -> E

The original ParserError

impl<I: AsBStr, E> ParseError<I, E>

fn char_span(self: &Self) -> Range<usize>

The byte indices for the char at ParseError::offset

impl<I, E> Display for ParseError<I, E>

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

impl<I, E> Freeze for ParseError<I, E>

impl<I, E> RefUnwindSafe for ParseError<I, E>

impl<I, E> Send for ParseError<I, E>

impl<I, E> StructuralPartialEq for ParseError<I, E>

impl<I, E> Sync for ParseError<I, E>

impl<I, E> Unpin for ParseError<I, E>

impl<I, E> UnsafeUnpin for ParseError<I, E>

impl<I, E> UnwindSafe for ParseError<I, E>

impl<I: $crate::clone::Clone, E: $crate::clone::Clone> Clone for ParseError<I, E>

fn clone(self: &Self) -> ParseError<I, E>

impl<I: $crate::cmp::Eq, E: $crate::cmp::Eq> Eq for ParseError<I, E>

impl<I: $crate::cmp::PartialEq, E: $crate::cmp::PartialEq> PartialEq for ParseError<I, E>

fn eq(self: &Self, other: &ParseError<I, E>) -> bool

impl<I: $crate::fmt::Debug, E: $crate::fmt::Debug> Debug for ParseError<I, E>

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

impl<T> Any for ParseError<I, E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ParseError<I, E>

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

impl<T> BorrowMut for ParseError<I, E>

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

impl<T> CloneToUninit for ParseError<I, E>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for ParseError<I, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ParseError<I, E>

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 ParseError<I, E>

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

impl<T, U> TryInto for ParseError<I, E>

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