Struct bytecheck::ArrayCheckError
source · pub struct ArrayCheckError<T> {
pub index: usize,
pub error: T,
}
Expand description
An error resulting from an invalid array.
Fields§
§index: usize
The index of the invalid element
error: T
The error that occured while validating the invalid element
Trait Implementations§
source§impl<T: Debug> Debug for ArrayCheckError<T>
impl<T: Debug> Debug for ArrayCheckError<T>
source§impl<T: Display> Display for ArrayCheckError<T>
impl<T: Display> Display for ArrayCheckError<T>
source§impl<T: Debug + Display> Error for ArrayCheckError<T>
impl<T: Debug + Display> Error for ArrayCheckError<T>
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()
Auto Trait Implementations§
impl<T> RefUnwindSafe for ArrayCheckError<T>where
T: RefUnwindSafe,
impl<T> Send for ArrayCheckError<T>where
T: Send,
impl<T> Sync for ArrayCheckError<T>where
T: Sync,
impl<T> Unpin for ArrayCheckError<T>where
T: Unpin,
impl<T> UnwindSafe for ArrayCheckError<T>where
T: 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