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
impl Eq for InputLocation
impl StructuralPartialEq for InputLocation
Auto Trait Implementations§
impl Freeze for InputLocation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)