Enum pest::error::InputLocation
source · pub enum InputLocation {
Pos(usize),
Span((usize, usize)),
}
Expand description
Where an Error
has occurred.
Variants§
Pos(usize)
Error
was created by Error::new_from_pos
Span((usize, usize))
Error
was created by Error::new_from_span
Trait Implementations§
source§impl Clone for InputLocation
impl Clone for InputLocation
source§fn clone(&self) -> InputLocation
fn clone(&self) -> InputLocation
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 InputLocation
impl Debug for InputLocation
source§impl Hash for InputLocation
impl Hash for InputLocation
source§impl PartialEq<InputLocation> for InputLocation
impl PartialEq<InputLocation> for InputLocation
source§fn eq(&self, other: &InputLocation) -> bool
fn eq(&self, other: &InputLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.