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