Skip to content

Add index methods to OrderedMap and OrderedSet. - #55

Merged
sfackler merged 1 commit into
rust-phf:masterfrom
SimonSapin:indexing
Apr 11, 2015
Merged

sfackler merged 1 commit into
rust-phf:masterfrom
SimonSapin:indexing

Conversation

@SimonSapin

Copy link
Copy Markdown
Contributor

This replaces the RandomAccessIterator impls removed in e215273.

See servo/string-cache#80

This replaces the `RandomAccessIterator` impls removed in e215273.

See servo/string-cache#80
SimonSapin added a commit to servo/string-cache that referenced this pull request Apr 11, 2015
Depends on rust-phf/rust-phf#55 being published on crates.io.
SimonSapin added a commit to servo/string-cache that referenced this pull request Apr 11, 2015
Depends on rust-phf/rust-phf#55 being merged and published on crates.io.
sfackler added a commit that referenced this pull request Apr 11, 2015
Add `index` methods to `OrderedMap` and `OrderedSet`.
@sfackler
sfackler merged commit 0cc37b2 into rust-phf:master Apr 11, 2015
@sfackler

Copy link
Copy Markdown
Collaborator

Thanks!

@sfackler

Copy link
Copy Markdown
Collaborator

Published v0.7.2

@SimonSapin

Copy link
Copy Markdown
Contributor Author

These could also be Indeximpls on the iterator. What do you think?

@sfackler

Copy link
Copy Markdown
Collaborator

Yeah, I was thinking about that option as well. I kind of like the current solution - It seems a bit weird to make an iterator but then index back into the original collection.

aphrody-dev pushed a commit to aphrody-labs/browser that referenced this pull request Nov 16, 2026
Depends on rust-phf/rust-phf#55 being merged and published on crates.io.
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 this pull request may close these issues.

2 participants