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 duplicate 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