Skip to content

Provide iterator-based approach for collections::list #12344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brunoabinader opened this issue Feb 17, 2014 · 0 comments · Fixed by #12348
Closed

Provide iterator-based approach for collections::list #12344

brunoabinader opened this issue Feb 17, 2014 · 0 comments · Fixed by #12348

Comments

@brunoabinader
Copy link
Contributor

As discussed in PR #12160, we need an iterator-based approach for collections::list helper functions.

This task includes:

  • Add a public type for @List<T> (i.e. BoxedList<T>)
  • Create a trait for handling BoxedList<T> operations (i.e. BoxedListOps<T>)
  • Create a BoxedListIterator<T> and implement iter() from within BoxedListOps<T>
  • Refactory current helper functions (i.e. any(), has()...) to an iterator-based approach
  • Move helper functions to BoxedListOps<T> so they can become methods w/ 'self' (i.e. list.has(1u) instead of list::has(list, 1u))
@bors bors closed this as completed in f203fc7 Feb 28, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Mar 7, 2024
…=flip1995

Alphabetize configuration options and lints in Clippy documentation

changelog: alphabetize configuration options and affected lints listed in section 3.1. of the Clippy Documentation

r? blyxyas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant