pub trait LayoutSpec {
    fn layout_with_capacity(items: usize) -> Result<Layout, LayoutError>;
}
Expand description

Types that specify a data structure’s storage layout requirements.

Required methods

Constructs a Layout for a memory block capable of holding the specified number of items.

Implementors