pub struct Error {
pub code: Code,
pub line: Option<usize>,
pub column: Option<usize>,
pub ptr: Option<usize>,
}
Fields§
§code: Code
Error code. This is non_exhaustive
.
line: Option<usize>
Line number, counting from 1.
column: Option<usize>
Column number, counting from 1. The count is utf-8 chars.
ptr: Option<usize>
This is a pointer offset of the str trying to be parsed, not a utf-8 char offset
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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