pub struct RawIdents {
    pub enum: Ident,
    pub discriminant: Ident,
    pub fields: Ident,
    pub variants: Ident,
    pub raw_enum_fn: Ident,
    pub discriminant_fn: Ident,
    pub variant_fn: Ident,
    /* private fields */
}
Expand description

The identifiers of the generated items.

Fields

enum: Ident

The identifier of the raw enum.

discriminant: Ident

The identifier of the raw enum discriminant.

fields: Ident

The identifier of the raw enum fields union (if any).

variants: Ident

The identifier of the variants enum.

raw_enum_fn: Ident

The identifier of the function that converts a pointer to an enum to a pointer to a raw enum.

discriminant_fn: Ident

The identifier of the function that gets a pointer to the discriminant of the raw enum.

variant_fn: Ident

The identifier of the function that determines the variant of the enum and casts it to the appropriate variant struct.

Implementations

Returns the identifier of the raw variant struct corresponding to the variant with the given identifier.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.