Enum csv::ParseError [] [src]

pub enum ParseError {
    UnequalLengths {
        expected: u64,
        got: u64,
    },
    InvalidUtf8,
}

A description of a CSV parse error.

Variants

UnequalLengths

A record was found that has a different size than other records.

This is only reported when flexible is set to false on the corresponding CSV reader/writer.

Fields

expected

Expected a record with this many fields.

got

Got a record with this many fields.

InvalidUtf8

An error occurred when trying to convert a field to a Unicode string.

TODO: Include the real Utf8Error, but it is not stabilized yet.

Trait Implementations

impl Display for ParseError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for ParseError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for ParseError

impl Clone for ParseError

fn clone(&self) -> ParseError

fn clone_from(&mut self, source: &Self)