pub enum ReadErrorKind {
UnterminatedQuote,
TrailingContent,
InvalidUtf8,
InconsistentFieldCount {
expected: usize,
found: usize,
},
Deserialize(String),
Io,
}Expand description
Kinds of errors that can occur while reading CSV data.
Variants§
UnterminatedQuote
A quoted field was opened but never closed before end of input.
TrailingContent
Characters appeared after a closing quote before a delimiter or newline.
InvalidUtf8
A field contained invalid UTF-8 bytes.
InconsistentFieldCount
The number of fields differs from previous rows (strict mode).
Deserialize(String)
A serde deserialization error occurred. Carries the error message.
Io
An I/O error occurred while reading the underlying source.
Trait Implementations§
Source§impl Clone for ReadErrorKind
impl Clone for ReadErrorKind
Source§fn clone(&self) -> ReadErrorKind
fn clone(&self) -> ReadErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadErrorKind
impl Debug for ReadErrorKind
Source§impl PartialEq for ReadErrorKind
impl PartialEq for ReadErrorKind
Source§fn eq(&self, other: &ReadErrorKind) -> bool
fn eq(&self, other: &ReadErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReadErrorKind
Auto Trait Implementations§
impl Freeze for ReadErrorKind
impl RefUnwindSafe for ReadErrorKind
impl Send for ReadErrorKind
impl Sync for ReadErrorKind
impl Unpin for ReadErrorKind
impl UnsafeUnpin for ReadErrorKind
impl UnwindSafe for ReadErrorKind
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