Struct ids_container::IdsContainer
[−]
[src]
pub struct IdsContainer<T> { /* fields omitted */ }
Methods
impl<T> IdsContainer<T>
[src]
fn new() -> IdsContainer<T>
fn get<'a>(&'a self, id: &Id) -> Option<&'a T>
Returns an iterator for all the keys and values in the container.
fn get_mut<'a>(&'a mut self, id: &Id) -> Option<&'a mut T>
Returns an iterator for all the keys and values in the container.
fn iter(&self) -> Iter<T>
Returns an iterator for all the keys and values in the container.
fn iter_mut(&mut self) -> IterMut<T>
Returns an iterator for all the keys and values in the container.
fn values(&self) -> Values<u32, T>
Returns an iterator for all the values in the container.
fn len(&self) -> usize
Returns the number of elements.
fn is_empty(&self) -> bool
Returns true if the container is empty.
fn insert(&mut self, value: T) -> Id
Inserts a new element and returns its identifier.