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

Implementors§