pub enum WrappedFieldError<PrimitiveAccessError, LayoutAsError> {
PrimitiveAccessError(PrimitiveAccessError),
LayoutAsError(LayoutAsError),
}
Expand description
The error being thrown when reading or writing fields that use custom data types implemented via LayoutAs.
Variants§
PrimitiveAccessError(PrimitiveAccessError)
An error happened when reading or writing the primitive data type the LayoutAs stores values at.
LayoutAsError(LayoutAsError)
An error happened in the call to LayoutAs::try_read or LayoutAs::try_write
Trait Implementations§
Source§impl<PrimitiveAccessError: Debug, LayoutAsError: Debug> Debug for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError: Debug, LayoutAsError: Debug> Debug for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
Source§impl<PrimitiveAccessError, LayoutAsError> Display for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Display for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
Source§impl<PrimitiveAccessError, LayoutAsError> Error for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Error for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl<PrimitiveAccessError, LayoutAsError> Freeze for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> RefUnwindSafe for WrappedFieldError<PrimitiveAccessError, LayoutAsError>where
PrimitiveAccessError: RefUnwindSafe,
LayoutAsError: RefUnwindSafe,
impl<PrimitiveAccessError, LayoutAsError> Send for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Sync for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> Unpin for WrappedFieldError<PrimitiveAccessError, LayoutAsError>
impl<PrimitiveAccessError, LayoutAsError> UnwindSafe for WrappedFieldError<PrimitiveAccessError, LayoutAsError>where
PrimitiveAccessError: UnwindSafe,
LayoutAsError: UnwindSafe,
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