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