Struct csv::Error [−][src]
pub struct Error(_);
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.
Methods
impl Error
[src]
impl Error
pub fn kind(&self) -> &ErrorKind
[src]
pub fn kind(&self) -> &ErrorKind
Return the specific type of this error.
pub fn into_kind(self) -> ErrorKind
[src]
pub fn into_kind(self) -> ErrorKind
Unwrap this error into its underlying type.
pub fn is_io_error(&self) -> bool
[src]
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 Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>
[src]
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl SerdeError for Error
[src]
impl SerdeError for Error