[][src]Trait generic_vec::raw::StorageWithCapacity

pub trait StorageWithCapacity<T>: Storage<T> + Default {
    pub fn with_capacity(capacity: usize) -> Self;
}

A storage that can be initially created with a given capacity

Required methods

pub fn with_capacity(capacity: usize) -> Self[src]

Creates a new storage with at least the given storage capacity

Loading content...

Implementations on Foreign Types

impl<T, S: ?Sized + StorageWithCapacity<T>> StorageWithCapacity<T> for Box<S>[src]

Loading content...

Implementors

impl<T> StorageWithCapacity<T> for ZeroSized[src]

impl<T, U> StorageWithCapacity<U> for Heap<T>[src]

impl<T: Default + Copy, const N: usize> StorageWithCapacity<T> for Array<T, N>[src]

impl<U, T, const N: usize> StorageWithCapacity<U> for UninitArray<T, N>[src]

Loading content...