Trait numpy::convert::NpyIndex

source ·
pub trait NpyIndex: IntoDimension + Sealed { }
Expand description

Trait implemented by types that can be used to index an array.

This is equivalent to ndarray::NdIndex but accounts for NumPy strides being in units of bytes instead of elements.

All types which implement IntoDimension implement this trait as well. This includes at least

Object Safety§

This trait is not object safe.

Implementors§