Skip to content

Tracking Issue for Iterator::contains #127494

Open
@yonikremer

Description

@yonikremer

Feature gate: #![feature(iter_contains)]

This is a tracking issue for a method of the Iterator trait that checks whether an iterator contains an item.

A method of the iterator trait to check whether it contains an element.
It goes over all the elements in the iterator and checks if they are in the collection.

Public API

fn contains<Q: ?Sized>(&mut self, item: Q) -> bool
    where
        Q: PartialEq<Self::Item>,
        Self: Sized,

Steps / History

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions