Enum bytecheck::EnumCheckError [−][src]
pub enum EnumCheckError<T> {
InvalidStruct {
variant_name: &'static str,
inner: StructCheckError,
},
InvalidTuple {
variant_name: &'static str,
inner: TupleStructCheckError,
},
InvalidTag(T),
}Expand description
An error resulting from an invalid enum.
Variants
A struct variant was invalid
Show fields
Fields of InvalidStruct
variant_name: &'static strThe name of the variant that was invalid
inner: StructCheckErrorThe error that occurred while validating the variant
A tuple variant was invalid
Show fields
Fields of InvalidTuple
variant_name: &'static strThe name of the variant that was invalid
inner: TupleStructCheckErrorThe error that occurred while validating the variant
The enum tag was invalid
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for EnumCheckError<T>impl<T> !Send for EnumCheckError<T>impl<T> !Sync for EnumCheckError<T>impl<T> Unpin for EnumCheckError<T> where
T: Unpin, impl<T> !UnwindSafe for EnumCheckError<T>