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

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

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

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: Default + Copy> StorageWithCapacity<T> for [T; 0] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 1] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 2] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 3] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 4] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 5] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 6] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 7] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 8] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 9] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 10] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 11] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 12] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 13] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 14] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 15] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 16] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 17] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 18] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 19] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 20] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 21] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 22] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 23] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 24] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 25] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 26] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 27] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 28] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 29] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 30] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 31] where
    Self: Default
[src]

impl<T: Default + Copy> StorageWithCapacity<T> for [T; 32] where
    Self: Default
[src]

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

Loading content...

Implementors

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

impl<T, U, A: Default + AllocRef> StorageWithCapacity<U> for Heap<T, A>[src]

impl<U, T, A> StorageWithCapacity<U> for UninitBuffer<T, A>[src]

Loading content...