Rust Internals
Returning Proxies from Index/IndexMut
internals
ideas (deprecated)
declanvk
June 4, 2018, 4:40am
11
I checked out the recent effort towards
DerefMove/IndexMove
which doesn’t quite cover this use case.
Should (array) view be an internal type?
show post in topic
Related topics
Topic
Replies
Views
Activity
Pre-RFC: Returning Proxies from Index/IndexMut
libs
16
2141
May 31, 2020
Feature Request: add a trait the same as std::ops::Index but returns an object rather than a reference
language design
5
1273
October 10, 2021
The return type of the "Index" trait has a big restriction
language design
7
2417
December 26, 2022
Could there be IndexByCopy?
language design
9
1366
April 23, 2019
Indexing syntax borrow checking should work as with functions
language design
8
950
July 8, 2021