]> git.lizzy.rs Git - rust.git/commit
dlist: Expose ListInsertion trait with insert_before and peek_next
authorblake2-ppc <blake2-ppc>
Wed, 10 Jul 2013 01:49:32 +0000 (03:49 +0200)
committerblake2-ppc <blake2-ppc>
Thu, 11 Jul 2013 13:54:35 +0000 (15:54 +0200)
commit92842d6516d2c5d92bad553585340f2ae3284308
tree222a26de158a9b1043a2ab3b703209b928d3107b
parent4fa69ab97ca4a5d570eec28c0ef979cd829686c6
dlist: Expose ListInsertion trait with insert_before and peek_next

An iterator that allows mutating the list is very useful but needs care
to not be unsound. ListIteration exposes only insert_before (used for
insert_ordered) and peek_next so far.
src/libextra/dlist.rs