Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tracking issue for iter_order_by #64295

Open
Labels
A-iteratorsArea: IteratorsB-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
@KodrAus

Description

@KodrAus

Landed in#62205

Public API

pubmod core{pubmod iter{mod traits{mod iterator{pubtraitIterator{fncmp_by<I,F>(mutself,other:I,mutcmp:F) ->OrderingwhereSelf:Sized,I:IntoIterator,F:FnMut(Self::Item,I::Item) ->Ordering,{}fnpartial_cmp_by<I,F>(mutself,other:I,mutpartial_cmp:F,) ->Option<Ordering>whereSelf:Sized,I:IntoIterator,F:FnMut(Self::Item,I::Item) ->Option<Ordering>,{}fneq_by<I,F>(mutself,other:I,muteq:F) ->boolwhereSelf:Sized,I:IntoIterator,F:FnMut(Self::Item,I::Item) ->bool,{}}}}}}

Before stabilization:

  • Stabilization PR

Open questions

  • Should we usesize_hint as an optimization for equality checking? That means buggy iterators may return incorrect results foreq_by. We could optimize for just a handful ofTrustedLen iterators instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-iteratorsArea: IteratorsB-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCLibs-TrackedLibs issues that are tracked on the team's project board.T-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


      [8]ページ先頭

      ©2009-2026 Movatter.jp