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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.