pub struct SyntaxError {
pub token: usize,
}Expand description
The place where the grammar stops accepting the input.
Fields§
§token: usizeThe index of the token that the grammar does not accept. It is the number of tokens when the input ends too early.
Trait Implementations§
Source§impl Clone for SyntaxError
impl Clone for SyntaxError
impl Copy for SyntaxError
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
impl Eq for SyntaxError
Source§impl PartialEq for SyntaxError
impl PartialEq for SyntaxError
impl StructuralPartialEq for SyntaxError
Auto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl UnsafeUnpin for SyntaxError
impl UnwindSafe for SyntaxError
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