Module indexing

Expand description

The indexing module. A module for indexing utility machinery.

Traits§

AsIndex
Helper trait for implementing indexing with support for negative indices.

Functions§

canonicalize_dim
Canonicalizes and bounds checks a dimension index with negative indexing support.
canonicalize_index
Canonicalizes and bounds checks an index with negative indexing support.
wrap_index
Wraps a dimension index to be within the bounds of the dimension size.