Enum LineColLocation

enum LineColLocation

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

Implementations

impl Clone for LineColLocation

fn clone(self: &Self) -> LineColLocation

impl Debug for LineColLocation

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for LineColLocation

impl Freeze for LineColLocation

impl From for LineColLocation

fn from(value: Span<'_>) -> Self

impl From for LineColLocation

fn from(value: Position<'_>) -> Self

impl Hash for LineColLocation

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for LineColLocation

fn eq(self: &Self, other: &LineColLocation) -> bool

impl RefUnwindSafe for LineColLocation

impl Send for LineColLocation

impl StructuralPartialEq for LineColLocation

impl Sync for LineColLocation

impl Unpin for LineColLocation

impl UnsafeUnpin for LineColLocation

impl UnwindSafe for LineColLocation

impl<T> Any for LineColLocation

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for LineColLocation

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for LineColLocation

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for LineColLocation

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for LineColLocation

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for LineColLocation

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for LineColLocation

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for LineColLocation

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for LineColLocation

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>