Skip to content

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

@brunoabinader

Description

@brunoabinader
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))

Activity

added a commit that references this issue on Feb 28, 2014
f203fc7
added a commit that references this issue on Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @brunoabinader

      Issue actions

        Provide iterator-based approach for collections::list · Issue #12344 · rust-lang/rust