Why does std::iter::Peekable::peek mutably borrow the self argument?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=RCHftXS5eFw



Duration: 3:46
3 views
0


Why does std::iter::Peekable::peek mutably borrow the self argument?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/1935611/anilbey)anilbey |
(stackoverflow.com/users/2902833/finomnis)Finomnis |
(stackoverflow.com/users/442760/cafce25)cafce25 |
A special thanks goes out to the (https://stackoverflow.com/questions/74841526/why-does-stditerpeekablepeek-mutably-borrow-the-self-argument)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

rust







Tags:
rust