Struct ParseError
struct ParseError<I, E> { ... }
See Parser::parse
Implementations
impl<I, E> ParseError<I, E>
fn input(self: &Self) -> &IThe
Streamat the initial location when parsing startedfn offset(self: &Self) -> usizeThe location in
ParseError::inputwhere parsing failedTo get the span for the
charthis points to, seeParseError::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) -> &EThe original
ParserErrorfn into_inner(self: Self) -> EThe original
ParserError
impl<I: AsBStr, E> ParseError<I, E>
fn char_span(self: &Self) -> Range<usize>The byte indices for the
charatParseError::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) -> TReturns the argument unchanged.
impl<T, U> Into for ParseError<I, E>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>