pub trait NpyIndex: IntoDimension {
fn get_checked<T>(self, dims: &[usize], strides: &[isize]) -> Option<isize>;
fn get_unchecked<T>(self, strides: &[isize]) -> isize;
fn __private__(self) -> PrivateMarker;
}
Expand description
Types that can be used to index an array.
See
IntoDimension
for what types you can use as NpyIndex
.
But basically, you can use