Struct sid_vec::MutIdSlice
[−]
[src]
pub struct MutIdSlice<'l, ID: Identifier, Data: 'l> { /* fields omitted */ }
Methods
impl<'l, ID: Identifier, Data: 'l> MutIdSlice<'l, ID, Data>
[src]
fn new(slice: &'l mut [Data]) -> MutIdSlice<'l, ID, Data>
fn iter<'a>(&'a self) -> Iter<'a, Data>
fn iter_mut<'a>(&'a mut self) -> IterMut<'a, Data>
Trait Implementations
impl<'l, ID: Identifier, Data: 'l> IntoIterator for MutIdSlice<'l, ID, Data>
[src]
type Item = &'l mut Data
The type of the elements being iterated over.
type IntoIter = IterMut<'l, Data>
Which kind of iterator are we turning this into?
fn into_iter(self) -> IterMut<'l, Data>
Creates an iterator from a value. Read more
impl<'l, ID: Identifier, Data: 'l> Index<ID> for MutIdSlice<'l, ID, Data>
[src]
type Output = Data
The returned type after indexing
fn index<'a>(&'a self, id: ID) -> &'a Data
The method for the indexing (container[index]
) operation
impl<'l, ID: Identifier, Data: 'l> IndexMut<ID> for MutIdSlice<'l, ID, Data>
[src]
fn index_mut<'a>(&'a mut self, id: ID) -> &'a mut Data
The method for the mutable indexing (container[index]
) operation