pub struct ErrorDetail { /* private fields */ }Expand description
Information about a parsing error
Implementations§
Source§impl ErrorDetail
impl ErrorDetail
Sourcepub fn with_text<'a>(&'a self, text: &'a str) -> ErrorDetailText<'a>
pub fn with_text<'a>(&'a self, text: &'a str) -> ErrorDetailText<'a>
Enhance the error with the source code
Trait Implementations§
Source§impl Debug for ErrorDetail
impl Debug for ErrorDetail
Source§impl From<ErrorDetail> for ErrorDetail
impl From<ErrorDetail> for ErrorDetail
Source§fn from(other: ErrorDetail) -> Self
fn from(other: ErrorDetail) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErrorDetail
impl PartialEq for ErrorDetail
Source§fn eq(&self, other: &ErrorDetail) -> bool
fn eq(&self, other: &ErrorDetail) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ErrorDetail
Auto Trait Implementations§
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnsafeUnpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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