pub struct ExpectedAt {
pub index: usize,
pub line: u32,
pub column: u32,
pub expected: Expected,
}
Expand description
A single parse failure at a location– reports what was expected at what location
Fields§
§index: usize
The character index of the error location
line: u32
The line number (starting with 1) of the error location
column: u32
The column number (starting with 1) of the error location
expected: Expected
The specific element that was expected
Trait Implementations§
Source§impl Clone for ExpectedAt
impl Clone for ExpectedAt
Source§fn clone(&self) -> ExpectedAt
fn clone(&self) -> ExpectedAt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExpectedAt
impl Debug for ExpectedAt
impl Copy for ExpectedAt
Auto Trait Implementations§
impl Freeze for ExpectedAt
impl RefUnwindSafe for ExpectedAt
impl Send for ExpectedAt
impl Sync for ExpectedAt
impl Unpin for ExpectedAt
impl UnwindSafe for ExpectedAt
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