Enum repc::ErrorType[][src]

#[non_exhaustive]pub enum ErrorType {
    AnnotatedBuiltinType,
    AnnotatedOpaqueType,
    AnnotatedArray,
    SizeOverflow,
    PowerOfTwoAlignment,
    SubByteAlignment,
    SubByteSize,
    MultiplePragmaPackedAnnotations,
    NamedZeroSizeBitField,
    UnnamedRegularField,
    OversizedBitfield,
    PragmaPackedField,
}

The type of an error produced by this crate.

Variants (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

impl Clone for ErrorType[src]

impl Debug for ErrorType[src]

impl Display for ErrorType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.