Trait massa_models::prehash::CapacityAllocator

source ·
pub trait CapacityAllocator {
    // Required method
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

Trait allowing pre-allocations

Required Methods§

source

fn with_capacity(capacity: usize) -> Self

pre-allocate with a given capacity

Object Safety§

This trait is not object safe.

Implementors§