You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEAT: Try to do new names for elem. elem → index and the others follow.
The logic is that:
- get() is for checked subscripting that returns Option<&T>
- Index::index is for checked subscripting that returns &T
We can reuse the index name for checked subscripting that returns &T.
Naming it the same as the trait method is no problem (the inherent
method has precedence).
0 commit comments