pub struct StructTypeBuilder { /* private fields */ }
Expand description

A helper struct to create a struct type.

Implementations§

Sets the memory kind of the struct

Adds a field to the struct

Adds a collection of fields to the struct

Finishes building the struct returning the corresponding Type.

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.