Trait traitsequence::interface::SequenceMut [−][src]
pub trait SequenceMut<'a, Item: 'a, Subsequence: SequenceMut<'a, Item, Subsequence> + ?Sized>: Sequence<'a, Item, Subsequence> + IndexMut<usize, Output = Item> + IndexMut<Range<usize>, Output = Subsequence> {
type IteratorMut: Iterator<Item = &'a mut Item>;
fn iter_mut(&'a mut self) -> Self::IteratorMut;
}
Expand description
A type behaving like a mutable sequence over the type Item
.
That is, its items can be mutated, but the sequence it self can not.
For a sequence where items can be appended, rearranged etc. see EditableSequence.
Associated Types
type IteratorMut: Iterator<Item = &'a mut Item>
type IteratorMut: Iterator<Item = &'a mut Item>
The mutable iterator type of the sequence.
Required methods
fn iter_mut(&'a mut self) -> Self::IteratorMut
fn iter_mut(&'a mut self) -> Self::IteratorMut
Returns a mutable iterator over the sequence.