pub enum SyntaxError<I> {
InvalidArguments,
InvalidSymbol,
Nom(I, ErrorKind),
}Variants§
Trait Implementations§
Source§impl<I: Debug> Debug for SyntaxError<I>
impl<I: Debug> Debug for SyntaxError<I>
Source§impl<I> ParseError<I> for SyntaxError<I>
impl<I> ParseError<I> for SyntaxError<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
Source§impl<I: PartialEq> PartialEq for SyntaxError<I>
impl<I: PartialEq> PartialEq for SyntaxError<I>
impl<I> StructuralPartialEq for SyntaxError<I>
Auto Trait Implementations§
impl<I> Freeze for SyntaxError<I>where
I: Freeze,
impl<I> RefUnwindSafe for SyntaxError<I>where
I: RefUnwindSafe,
impl<I> Send for SyntaxError<I>where
I: Send,
impl<I> Sync for SyntaxError<I>where
I: Sync,
impl<I> Unpin for SyntaxError<I>where
I: Unpin,
impl<I> UnwindSafe for SyntaxError<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