Slug: list-dll-01 · Paired reading: Chapter 18
Prompt
A classic prev/next Box doubly linked list cannot assign unique
owners (cycles). Implement the idiomatic escape: an index-based
doubly linked list over a Vec of slots.
IndexDll stores nodes with prev/next: Option<usize>, plus head /
tail. Support push_back(value) -> usize (returns node index) and
to_vec() walking head→tail.