#[derive(Index)]
Expand description

This macro is used to derive the Index and IndexMut traits for all the data structures that implement the Collection trait. Both traits will use the get and get_mut methods of the collection to access the elements and will panic if the index is out of bounds.

Panics

This macro will panic if the input could not be properly parsed using the syn crate.