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 for InputLocation
impl PartialEq 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 ==
.impl Eq for InputLocation
impl StructuralEq for InputLocation
impl StructuralPartialEq for InputLocation
Auto Trait Implementations§
impl RefUnwindSafe for InputLocation
impl Send for InputLocation
impl Sync for InputLocation
impl Unpin for InputLocation
impl UnwindSafe for InputLocation
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