@@ -1,6 +1,6 @@
|
||||
# Mutable indexing
|
||||
|
||||
`Index` allows read-only access. It doesn't let you mutate the value you
|
||||
`Index` allows read-only access. It doesn't let you mutate the value you
|
||||
retrieved.
|
||||
|
||||
## `IndexMut`
|
||||
@@ -17,4 +17,4 @@ pub trait IndexMut<Idx>: Index<Idx>
|
||||
```
|
||||
|
||||
`IndexMut` can only be implemented if the type already implements `Index`,
|
||||
since it unlocks an _additional_ capability.
|
||||
since it unlocks an _additional_ capability.
|
||||
|
||||
Reference in New Issue
Block a user