pub struct Repr {
    pub paren_token: Paren,
    pub base: Option<Base>,
    pub primitive_type: Option<PrimitiveType>,
    pub modifier: Option<Modifier>,
}
Expand description

A complete repr AST node.

Fields

paren_token: Paren

The parentheses surrounding the arguments to repr.

base: Option<Base>

The base repr, if any.

primitive_type: Option<PrimitiveType>

repr(C, i*)/repr(C, u*)

modifier: Option<Modifier>

The repr modifiers, if any.

Implementations

Merges the tokens of an attribute argument into an optional Repr.

Merges two parsed reprs together, returning an error if they are incompatible.

Trait Implementations

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.