mozilla/rust — pull request #12348 by brunoabinader (2014-02-17 17:17:30+00:00)
Title: Refactor collections::list

This PR includes:
- Add a public type for ```@List``` (i.e. ```BoxedList```)
- Create a trait for handling ```BoxedList``` operations (i.e. ```BoxedListOps```)
- Create a ```BoxedListIterator``` and implement ```iter()``` from within ```BoxedListOps```
- Refactory current helper functions (i.e. ```any()```, ```has()```...) to an iterator-based approach
- Move helper functions to ```BoxedListOps``` so they can become methods w/ 'self' (i.e. ```list.has(1u)``` instead of ```list::has(list, 1u)```)

Closes #12344.