Enum InputLocation

enum InputLocation

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

Implementations

impl Clone for InputLocation

fn clone(self: &Self) -> InputLocation

impl Debug for InputLocation

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

impl Eq for InputLocation

impl Freeze for InputLocation

impl Hash for InputLocation

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

impl PartialEq for InputLocation

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

impl RefUnwindSafe for InputLocation

impl Send for InputLocation

impl StructuralPartialEq for InputLocation

impl Sync for InputLocation

impl Unpin for InputLocation

impl UnsafeUnpin for InputLocation

impl UnwindSafe for InputLocation

impl<T> Any for InputLocation

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for InputLocation

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

impl<T> BorrowMut for InputLocation

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

impl<T> CloneToUninit for InputLocation

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

impl<T> From for InputLocation

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for InputLocation

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

impl<T, U> Into for InputLocation

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 InputLocation

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

impl<T, U> TryInto for InputLocation

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