Enum csv_stream::ErrorKind[][src]

#[non_exhaustive]
pub enum ErrorKind {
    UnequalLengths {
        expected_len: u64,
        len: u64,
    },
    Serialize(String),
}
Expand description

The specific type of an error.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

UnequalLengths

Fields

expected_len: u64

The expected number of fields in a record. This is the number of fields in the record read prior to the record indicated by pos.

len: u64

The number of fields in the bad record.

This error occurs when two records with an unequal number of fields are found. This error only occurs when the flexible option in a CSV reader/writer is disabled.

Serialize(String)

Tuple Fields

0: String

An error of this kind occurs only when using the Serde serializer.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.