pub unsafe trait StorageWithCapacity: Storage + Sized {
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

A storage that can be initially created with a given capacity

Safety

The storage must have a capacity of at least capacity after StorageWithCapacity::with_capacity is called.

Required methods

Creates a new storage with at least the given storage capacity

Implementations on Foreign Types

Implementors