Struct radiation::ParseError
source · pub struct ParseError<I> {
pub input: I,
pub kind: ParseErrorKind,
pub subsequent: Option<Box<ParseError<I>>>,
}
Fields§
§input: I
§kind: ParseErrorKind
§subsequent: Option<Box<ParseError<I>>>
Implementations§
Trait Implementations§
source§impl<I> Debug for ParseError<I>
impl<I> Debug for ParseError<I>
source§impl<I> Display for ParseError<I>
impl<I> Display for ParseError<I>
source§impl<I, E> FromExternalError<I, E> for ParseError<I>where
E: Display,
impl<I, E> FromExternalError<I, E> for ParseError<I>where
E: Display,
source§fn from_external_error(input: I, kind: NomErrorKind, e: E) -> Self
fn from_external_error(input: I, kind: NomErrorKind, e: E) -> Self
Creates a new error from an input position, an ErrorKind indicating the
wrapping parser, and an external error
source§impl<I> ParseError<I> for ParseError<I>
impl<I> ParseError<I> for ParseError<I>
source§fn from_error_kind(input: I, kind: NomErrorKind) -> Self
fn from_error_kind(input: I, kind: NomErrorKind) -> Self
Creates an error from the input position and an ErrorKind
source§fn append(input: I, kind: NomErrorKind, other: Self) -> Self
fn append(input: I, kind: NomErrorKind, 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> RefUnwindSafe for ParseError<I>where
I: RefUnwindSafe,
impl<I> Send for ParseError<I>where
I: Send,
impl<I> Sync for ParseError<I>where
I: Sync,
impl<I> Unpin for ParseError<I>where
I: Unpin,
impl<I> UnwindSafe for ParseError<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