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

ParseFloatError(ParseFloatError)

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

ParseIntError(ParseIntError)

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

InvalidFieldType(char)

The Field as an invalid FieldType

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

BadConversion(FieldConversionError)

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

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)

Trait Implementations

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl From<Error> for ErrorKind[src]

impl From<FieldConversionError> for ErrorKind[src]

impl From<ParseFloatError> for ErrorKind[src]

impl From<ParseIntError> for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.