pub trait ArrayIndex { fn index<T>(&self, array: &Array<T>) -> i32; }
A trait implemented by types that can index into an Array.
Array
Calculates the index into the Array’s underlying storage specified by the value of self.
self
Panics if the value of self does not correspond to an in-bounds element of the Array.