pub trait ListInsertion<A> { fn insert_next(&mut self, elt: A); fn peek_next<'a>(&'a mut self) -> std::option::Option; }
Allow mutating the DList while iterating
fn insert_next(&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) -> std::option::Option
Provide a reference to the next element, without changing the iterator
MutDListIterator<'self, A>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).