pub struct ErrorPosition {
pub start: (usize, usize),
pub end: Option<(usize, usize)>,
}
Expand description
A struct to store the position of an error
Fields§
§start: (usize, usize)
The start position of the error. The first value is the line, the second is the column
end: Option<(usize, usize)>
The end position of the error. The first value is the line, the second is the column.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorPosition
impl Clone for ErrorPosition
Source§fn clone(&self) -> ErrorPosition
fn clone(&self) -> ErrorPosition
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 ErrorPosition
impl Debug for ErrorPosition
Source§impl Display for ErrorPosition
impl Display for ErrorPosition
Source§impl From<&Span<'_>> for ErrorPosition
impl From<&Span<'_>> for ErrorPosition
Source§impl From<LineColLocation> for ErrorPosition
impl From<LineColLocation> for ErrorPosition
Source§fn from(e: LineColLocation) -> Self
fn from(e: LineColLocation) -> Self
Convert a pest::error::LineColLocation
to an ErrorPosition
Source§impl From<Span<'_>> for ErrorPosition
impl From<Span<'_>> for ErrorPosition
Source§impl PartialEq for ErrorPosition
impl PartialEq for ErrorPosition
impl Copy for ErrorPosition
impl Eq for ErrorPosition
impl StructuralPartialEq for ErrorPosition
Auto Trait Implementations§
impl Freeze for ErrorPosition
impl RefUnwindSafe for ErrorPosition
impl Send for ErrorPosition
impl Sync for ErrorPosition
impl Unpin for ErrorPosition
impl UnwindSafe for ErrorPosition
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