Enum zerogc_simple::layout::GcTypeLayout[][src]

pub enum GcTypeLayout {
    Fixed(Layout),
    Array {
        element_layout: Layout,
    },
    Vec {
        element_layout: Layout,
    },
}
Expand description

Layout information on a GcType

Variants

Fixed

A type with a fixed, statically-known layout

Tuple Fields of Fixed

0: Layout
Array

An array, whose size can vary at runtime

Fields of Array

element_layout: Layout

The fixed layout of elements in the array

The overall alignment of the array is equal to the alignment of each element, however the size may vary at runtime.

Vec

A vector, whose capacity can vary from instance to instance

Fields of Vec

element_layout: Layout

The fixed layout of elements in the vector.

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 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.