Trait Capacity
Source pub trait Capacity {
// Required method
fn capacity(&self) -> usize;
}
Expand description
Collection with known capacity.
Returns the current capacity of the collection.
This corresponds to the number of elements the collection can hold without reallocation.