Files
third_party_rust_indexmap/tests
Josh Stone b830148a9d Implement direct usize indexing
```rust
where
    IndexMap<K, V, S>: IndexMut<usize, Output = V>,
    IndexSet<T, S>: Index<usize, Output = T>,
```

This allows `map[i]` and `set[i]` indexing to access values directly,
panicking if the index is out of bounds, similar to slices.

On maps, this somewhat overlaps with `Index<&Q> + IndexMut<&Q>` where
`Q: Equivalent<K>`. The reference makes this indexing unambiguous, but
it could be confusing to users if the key type is also an integer.
2020-08-07 14:45:07 -07:00
..
2020-07-20 13:14:08 -07:00
2020-01-14 16:31:22 +01:00
2020-08-07 14:45:07 -07:00
2020-07-20 13:14:08 -07:00