Enum pest::error::LineColLocation
source · pub enum LineColLocation {
Pos((usize, usize)),
Span((usize, usize), (usize, usize)),
}
Expand description
Line/column where an Error
has occurred.
Variants§
Pos((usize, usize))
Line/column pair if Error
was created by Error::new_from_pos
Span((usize, usize), (usize, usize))
Line/column pairs if Error
was created by Error::new_from_span
Trait Implementations§
source§impl Clone for LineColLocation
impl Clone for LineColLocation
source§fn clone(&self) -> LineColLocation
fn clone(&self) -> LineColLocation
Returns a copy 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 LineColLocation
impl Debug for LineColLocation
source§impl From<Position<'_>> for LineColLocation
impl From<Position<'_>> for LineColLocation
source§impl From<Span<'_>> for LineColLocation
impl From<Span<'_>> for LineColLocation
source§impl Hash for LineColLocation
impl Hash for LineColLocation
source§impl PartialEq for LineColLocation
impl PartialEq for LineColLocation
source§fn eq(&self, other: &LineColLocation) -> bool
fn eq(&self, other: &LineColLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LineColLocation
impl StructuralEq for LineColLocation
impl StructuralPartialEq for LineColLocation
Auto Trait Implementations§
impl RefUnwindSafe for LineColLocation
impl Send for LineColLocation
impl Sync for LineColLocation
impl Unpin for LineColLocation
impl UnwindSafe for LineColLocation
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