Enum ErrorKind

Source
#[non_exhaustive]
pub enum ErrorKind {
Show 15 variants IoError(Error), ParseFloatError(ParseFloatError), ParseIntError(ParseIntError), InvalidFieldType(char), MissingMemoFile, ErrorOpeningMemoFile(Error), BadConversion(FieldConversionError), EndOfRecord, NotEnoughFields, TooManyFields, IncompatibleType, UnsupportedCodePage(CodePageMark), StringDecodeError(DecodeError), StringEncodeError(EncodeError), Message(String),
}

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.
§

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

§

UnsupportedCodePage(CodePageMark)

The Code Page is not supported

§

StringDecodeError(DecodeError)

A string from the database could not be decoded

§

StringEncodeError(EncodeError)

A string from the database could not be encoded

§

Message(String)

Trait Implementations§

Source§

impl Debug for ErrorKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for ErrorKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<Error> for ErrorKind

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FieldConversionError> for ErrorKind

Source§

fn from(e: FieldConversionError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseFloatError> for ErrorKind

Source§

fn from(p: ParseFloatError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseIntError> for ErrorKind

Source§

fn from(p: ParseIntError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.