Struct ideal::vec::IdVec
[−]
[src]
pub struct IdVec<K, V = K> { /* fields omitted */ }
Methods
impl<K, V> IdVec<K, V>
[src]
fn new() -> Self
fn push(&mut self, item: V) -> Id<K>
fn len(&self) -> usize
fn ids(&self) -> Ids<K>
Trait Implementations
impl<K: Debug, V: Debug> Debug for IdVec<K, V>
[src]
impl<K, V> Index<Id<K>> for IdVec<K, V>
[src]
type Output = V
The returned type after indexing
fn index(&self, id: Id<K>) -> &Self::Output
The method for the indexing (container[index]
) operation
impl<K, V> IndexMut<Id<K>> for IdVec<K, V>
[src]
fn index_mut(&mut self, id: Id<K>) -> &mut Self::Output
The method for the mutable indexing (container[index]
) operation