Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Revise signature::SnapshotEntries iterator #52

Open
mbrt opened this issue Feb 26, 2016 · 0 comments
Open

Revise signature::SnapshotEntries iterator #52

mbrt opened this issue Feb 26, 2016 · 0 comments

Comments

@mbrt
Copy link
Owner

mbrt commented Feb 26, 2016

Instead of implementing Iterator for SnapshotEntries, it's better to implement IntoIterator for SnapshotEntries, &SnapshotEntries, &mut SnapshotEntries. This allows to add to SnapshotEntries these methods independently:

  • entry(&self, id: EntryId) -> Entry;
  • into_display(self) -> SnapshotEntriesDisplay.
@mbrt mbrt added this to the v0.3 milestone Feb 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant