Enum bytecheck::SliceCheckError
source · pub enum SliceCheckError<T> {
CheckBytes {
index: usize,
error: T,
},
}
Expand description
An error resulting from an invalid slice.
Variants§
CheckBytes
Fields
§
error: T
The error that occured while validating the invalid element
An element of the slice failed to validate
Trait Implementations§
source§impl<T: Debug> Debug for SliceCheckError<T>
impl<T: Debug> Debug for SliceCheckError<T>
source§impl<T: Display> Display for SliceCheckError<T>
impl<T: Display> Display for SliceCheckError<T>
source§impl<T: Debug + Display> Error for SliceCheckError<T>
impl<T: Debug + Display> Error for SliceCheckError<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()