pub enum CsvError {
UnterminatedQuote {
line: usize,
},
MisplacedQuote {
line: usize,
},
}Expand description
Text that is not valid CSV. Each line number counts from 1.
Variants§
UnterminatedQuote
A quoted field opened on line is still open at the end of the text.
MisplacedQuote
A quote inside an unquoted field, or text after a closing quote.
Trait Implementations§
impl Eq for CsvError
Source§impl Error for CsvError
impl Error for CsvError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for CsvError
Auto Trait Implementations§
impl Freeze for CsvError
impl RefUnwindSafe for CsvError
impl Send for CsvError
impl Sync for CsvError
impl Unpin for CsvError
impl UnsafeUnpin for CsvError
impl UnwindSafe for CsvError
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