pub struct CSVError(_);
Available on (crate features
io_csv_read
or io_csv_read_async
or io_csv_write
) and crate feature io_csv_read_async
only.Expand description
An error that can occur when processing CSV data.
This error can happen when writing or reading CSV data.
There are some important scenarios where an error is impossible to occur.
For example, if a CSV reader is used on an in-memory buffer with the
flexible
option enabled and one is reading records as raw byte strings,
then no error can occur.
Implementations
impl Error
impl Error
pub fn kind(&self) -> &ErrorKind
pub fn kind(&self) -> &ErrorKind
Return the specific type of this error.
pub fn into_kind(self) -> ErrorKind
pub fn into_kind(self) -> ErrorKind
Unwrap this error into its underlying type.
pub fn is_io_error(&self) -> bool
pub fn is_io_error(&self) -> bool
Returns true if this is an I/O error.
If this is true, the underlying ErrorKind
is guaranteed to be
ErrorKind::Io
.
Trait Implementations
impl Error for Error
impl Error for Error
fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more