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
impl Eq for LineColLocation
impl StructuralPartialEq for LineColLocation
Auto Trait Implementations§
impl Freeze for LineColLocation
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
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
)