Trait Layout

Source
pub trait Layout {
    type TypeLayout: Copy + Default + Debug + Eq + PartialEq;
    type FieldLayout: Copy + Default + Debug + Eq + PartialEq;
    type OpaqueLayout: Copy + Default + Debug + Eq + PartialEq;
}
Expand description

A collection of types encoding the layout of a type.

Required Associated Types§

Source

type TypeLayout: Copy + Default + Debug + Eq + PartialEq

The type used to encode the layout of the type itself.

Source

type FieldLayout: Copy + Default + Debug + Eq + PartialEq

The type used to encode the layout of a field in a record.

Source

type OpaqueLayout: Copy + Default + Debug + Eq + PartialEq

The type used to encode the layout of an opaque type.

Implementations on Foreign Types§

Source§

impl Layout for ()

Implementors§