Enum repc::ErrorType [−][src]
#[non_exhaustive]
pub enum ErrorType {
AnnotatedBuiltinType,
AnnotatedOpaqueType,
AnnotatedArray,
SizeOverflow,
PowerOfTwoAlignment,
SubByteAlignment,
SubByteSize,
MultiplePragmaPackedAnnotations,
NamedZeroSizeBitField,
UnnamedRegularField,
OversizedBitfield,
PragmaPackedField,
}
Expand description
The type of an error produced by this crate.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AnnotatedBuiltinType
A builtin type was annotated.
Builtin types cannot be annotated. You probably want to annotate a typedef of the builtin type.
AnnotatedOpaqueType
An opaque type was annotated.
Opaque types cannot be annotated.
AnnotatedArray
An array was annotated.
Arrays cannot be annotated. You probably want to annotate a typedef of the array.
SizeOverflow
The size of the type cannot be represented in u64
.
PowerOfTwoAlignment
One of the alignments given in the input is not a power of two.
SubByteAlignment
One of the alignments given in the input is not at least 8.
SubByteSize
The size of an opaque type is not a multiple of 8.
MultiplePragmaPackedAnnotations
A type has multiple PragmaPack
annotations.
NamedZeroSizeBitField
A zero-sized bit-field is named.
Zero-sized bitfields must be unnamed.
UnnamedRegularField
A regular field is unnamed.
Only bit-fields can be unnamed.
OversizedBitfield
One of the bit-fields in the input has a width larger than the size of its type.
PragmaPackedField
A field has a PragmaPack
annotation.
Fields cannot have PragmaPack
annotations.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorType
impl UnwindSafe for ErrorType
Blanket Implementations
Mutably borrows from an owned value. Read more