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

Returns the capacity of the collection.

Implementors