Enum dbase::FieldConversionError
source · 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
Fields
Happens when the conversion could not be mode because the FieldType does not mat the expected one
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§
source§impl Debug for FieldConversionError
impl Debug for FieldConversionError
source§impl Display for FieldConversionError
impl Display for FieldConversionError
source§impl Error for FieldConversionError
impl Error for FieldConversionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FieldConversionError> for ErrorKind
impl From<FieldConversionError> for ErrorKind
source§fn from(e: FieldConversionError) -> Self
fn from(e: FieldConversionError) -> Self
Converts to this type from the input type.
source§impl From<FieldConversionError> for FieldIOError
impl From<FieldConversionError> for FieldIOError
source§fn from(e: FieldConversionError) -> Self
fn from(e: FieldConversionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FieldConversionError
impl Send for FieldConversionError
impl Sync for FieldConversionError
impl Unpin for FieldConversionError
impl UnwindSafe for FieldConversionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more