#[non_exhaustive]pub struct ParseError {
pub line: Option<Box<[u8]>>,
pub kind: ParseErrorKind,
}
Expand description
Error returned by the Parser
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.line: Option<Box<[u8]>>
The line in which the error occurred. This will be None
for I/O
errors.
kind: ParseErrorKind
Error detail.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
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