Struct repc_impl::layout::RecordField[][src]

pub struct RecordField<I: Layout> {
    pub layout: Option<I::FieldLayout>,
    pub annotations: Vec<Annotation>,
    pub named: bool,
    pub bit_width: Option<u64>,
    pub ty: Type<I>,
}
Expand description

A field of a record.

Fields

layout: Option<I::FieldLayout>

The layout of the field.

This is None for unnamed fields.

annotations: Vec<Annotation>

The annotations on this field.

named: bool

Whether the field is named.

An unnamed field in C is always a bit-field and is declared like T : N where T is the type of the field and N is the width of the bit-field.

bit_width: Option<u64>

If this is a bit-field, the width of the field.

The field is recognized as a bit-field if and only if this is Some.

ty: Type<I>

The type of the field.

Implementations

Returns the identical record field with the Layout converted.

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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.