pub struct Error { /* private fields */ }Expand description
An error when performing some operation on an identifier (or fragment).
You can inspect error_kind to see specifically what went wrong. And
depending on the failure, byte_offset might have been set. Please refer
to the function documentation.
Implementations§
Source§impl Error
impl Error
Sourcepub fn byte_offset(&self) -> Option<usize>
pub fn byte_offset(&self) -> Option<usize>
The byte offset that caused the error (starting from the beginning of the offending string).
Sourcepub fn error_kind(&self) -> ErrorKind
pub fn error_kind(&self) -> ErrorKind
The error kind that led to this failure.
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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