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 Hash for LineColLocation
impl Hash for LineColLocation
source§impl PartialEq<LineColLocation> for LineColLocation
impl PartialEq<LineColLocation> 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 ==
.