Enum dbase::FieldConversionError[][src]

pub enum FieldConversionError {
    FieldTypeNotAsExpected {
        expected: FieldType,
        actual: FieldType,
    },
    IncompatibleType,
    NoneValue,
}
Expand description

Errors that can happen when trying to convert a FieldValue into a more concrete type

Variants

FieldTypeNotAsExpected

Happens when the conversion could not be mode because the FieldType does not mat the expected one

Fields of FieldTypeNotAsExpected

expected: FieldType

The expected FieldType of the FieldValue the conversion was tried on

actual: FieldType

The actual FieldType of the FieldValue the conversion was tried on

IncompatibleType
NoneValue

The value written is the file was only pad bytes / uninitialized and the user tried to convert it into a non Option-Type

Trait Implementations

Formats the value using the given formatter. Read more

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.

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.