Trait coca::storage::LayoutSpec
source · [−]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
fn layout_with_capacity(items: usize) -> Result<Layout, LayoutError>
fn layout_with_capacity(items: usize) -> Result<Layout, LayoutError>
Constructs a Layout
for a memory block capable of holding the
specified number of items.
Implementors
impl LayoutSpec for ObjectLayout
This is supported on crate feature
unstable
only.