[][src]Trait cc_traits::Capacity

pub trait Capacity {
    pub fn capacity(&self) -> usize;
}

Collection with known capacity.

Required methods

pub fn capacity(&self) -> usize[src]

Returns the current capacity of the collection.

This corresponds to the number of elements the collection can hold without reallocation.

Loading content...

Implementations on Foreign Types

impl<T> Capacity for Vec<T>[src]

impl<T> Capacity for VecDeque<T>[src]

Loading content...

Implementors

Loading content...