Index and IndexMut trait. #429
Labels
compiler
General compiler. Should eventually become more specific as the issue is triaged
enhancement
New feature or request
language feature
Core language features visible to end users
lib: std
Standard library
P: low
#424 introduced static arrays and indexing them though indexing other types we need the
Index
and possiblyIndexMut
traits. These would mimic the Rust equivalents.The existing code tries to call
self.index(arg)
by in fact just callingstd::ops::index(self, arg)
which may itself be a bit wrong... I'm not sure how it should work mechanically.The text was updated successfully, but these errors were encountered: