Trait std::container::Container
pub trait Container { fn len(&self) -> uint; fn is_empty(&self) -> bool { ... } }
A trait to represent the abstract idea of a container. The only concrete knowledge known is the number of elements contained within.
Required Methods
fn len(&self) -> uint
Return the number of elements in the container
Provided Methods
fn is_empty(&self) -> bool
Return true if the container contains no elements