pub struct SyntaxError<'a> {
pub input: &'a str,
pub error: SyntaxErrorKind,
}Fields§
§input: &'a str§error: SyntaxErrorKindTrait Implementations§
Source§impl<'a> Debug for SyntaxError<'a>
impl<'a> Debug for SyntaxError<'a>
Source§impl<'a> ParseError<&'a str> for SyntaxError<'a>
impl<'a> ParseError<&'a str> for SyntaxError<'a>
Source§fn from_error_kind(input: &'a str, kind: ErrorKind) -> Self
fn from_error_kind(input: &'a str, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_: &'a str, _: ErrorKind, other: Self) -> Self
fn append(_: &'a str, _: 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<'a> PartialEq for SyntaxError<'a>
impl<'a> PartialEq for SyntaxError<'a>
impl<'a> StructuralPartialEq for SyntaxError<'a>
Auto Trait Implementations§
impl<'a> Freeze for SyntaxError<'a>
impl<'a> RefUnwindSafe for SyntaxError<'a>
impl<'a> Send for SyntaxError<'a>
impl<'a> Sync for SyntaxError<'a>
impl<'a> Unpin for SyntaxError<'a>
impl<'a> UnwindSafe for SyntaxError<'a>
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