Trait len_trait::Capacity
[−]
[src]
pub trait Capacity { fn capacity(&self) -> usize; }
A collection with a capacity.
Obtaining the capacity of the collection must take O(1) time and space.
Required Methods
fn capacity(&self) -> usize
Returns the capacity of the collection.
Implementors
impl<T: Ord> Capacity for BinaryHeap<T>
impl Capacity for String
impl<T> Capacity for Vec<T>
impl<T> Capacity for VecDeque<T>