Skip to content

Clarify that the Peekable takes ownership of the iterator #1325

@shsms

Description

@shsms

Maybe it is worth clarifying that the Peekable takes ownership of the iterator, otherwise if someone iterates it externally too it might lose data (removed from the iterator and stored in the internal buffer).

Originally posted by @llucax in #1295 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions