Derive Macro array_map_derive::Indexable
source · [−]#[derive(Indexable)]
{
// Attributes available to this derive:
#[index]
}
Expand description
Derive macro for the Indexable trait.
This properly derives the trait and upholds all the safety invariants.
Variants can be disabled by adding #[index(disabled)]
. If Indexable::index() is ever called
on that variant then it will panic.