pub enum InputLocation {
Pos(usize),
Span((usize, usize)),
}
Expand description
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
Trait Implementations§
Source§impl Clone for InputLocation
impl Clone for InputLocation
Source§fn clone(&self) -> InputLocation
fn clone(&self) -> InputLocation
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 InputLocation
impl Debug for InputLocation
Source§impl Hash for InputLocation
impl Hash for InputLocation
Source§impl PartialEq for InputLocation
impl PartialEq for InputLocation
impl Eq for InputLocation
impl StructuralPartialEq for InputLocation
Auto Trait Implementations§
impl Freeze for InputLocation
impl RefUnwindSafe for InputLocation
impl Send for InputLocation
impl Sync for InputLocation
impl Unpin for InputLocation
impl UnwindSafe for InputLocation
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