Trait cl_generic_vec::raw::StorageWithCapacity
source ·
[−]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
fn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Creates a new storage with at least the given storage capacity
