Trait std::collections::dlist::ListInsertion[src]
pub trait ListInsertion<A> {
fn insert_next<A>(&mut self, elt: A);
fn peek_next<A>(&'a mut self) -> Option<&'a mut A>;
}Allow mutating the DList while iterating
Required Methods
fn insert_next<A>(&mut self, elt: A)
Insert elt just after to the element most recently returned by .next()
The inserted element does not appear in the iteration.
fn peek_next<A>(&'a mut self) -> Option<&'a mut A>
Provide a reference to the next element, without changing the iterator
Implementors
impl<'a, A> ListInsertion<A> for MutItems<'a, A>