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
InvalidStruct
Fields
variant_name: &'static str
The name of the variant that was invalid
inner: StructCheckError
The error that occurred while validating the variant
A struct variant was invalid
InvalidTuple
Fields
variant_name: &'static str
The name of the variant that was invalid
inner: TupleStructCheckError
The error that occurred while validating the variant
A tuple variant was invalid
InvalidTag(T)
The enum tag was invalid