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: usizeThe character index of the error location
line: u32The line number (starting with 1) of the error location
column: u32The column number (starting with 1) of the error location
expected: ExpectedThe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more