Enum dbase::ErrorKind[][src]

pub enum ErrorKind {
    IoError(Error),
    ParseFloatError(ParseFloatError),
    ParseIntError(ParseIntError),
    InvalidFieldType(char),
    MissingMemoFile,
    ErrorOpeningMemoFile(Error),
    BadConversion(FieldConversionError),
    EndOfRecord,
    NotEnoughFields,
    TooManyFields,
    IncompatibleType,
    Message(String),
}

Variants

IoError(Error)

Wrapper of std::io::Error to forward any reading/writing error

Tuple Fields of IoError

0: Error
ParseFloatError(ParseFloatError)

Wrapper to forward errors whe trying to parse a float from the file

Tuple Fields of ParseFloatError

0: ParseFloatError
ParseIntError(ParseIntError)

Wrapper to forward errors whe trying to parse an integer value from the file

Tuple Fields of ParseIntError

0: ParseIntError
InvalidFieldType(char)

The Field as an invalid FieldType

Tuple Fields of InvalidFieldType

0: char
MissingMemoFile

Happens when at least one field is a Memo type and the that additional memo file could not be found / was not given

ErrorOpeningMemoFile(Error)

Something went wrong when we tried to open the associated memo file

Tuple Fields of ErrorOpeningMemoFile

0: Error
BadConversion(FieldConversionError)

The conversion from a FieldValue to another type could not be made

Tuple Fields of BadConversion

0: FieldConversionError
EndOfRecord

End of the record, there are no more fields

NotEnoughFields

Not all the fields declared to the writer were given

TooManyFields

More fields than expected were given to the writer

IncompatibleType

The type of the value for the field is not compatible with the dbase field’s type

Message(String)

Tuple Fields of Message

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Converts the given value to a String. Read more

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.