Crate indices

Source

Macros§

indices
Returns mutable references for the requested indices. Panics if any index is out of bounds or duplicated.
indices_ordered
Returns mutable references for the requested indices Slightly more efficient than indices! since assumes the requested indices are already ordered smallest to largest. Panics if the requested indices are not smallest to largest, or if any index is duplicated or out of bounds.
try_indices
Returns mutable references for the requested indices. Returns TryIndicesError if any index is out of bounds or duplicated.
try_indices_ordered
Returns mutable references for the requested indices. Slightly more efficient than try_indices! since assumes the requested indices are already ordered smallest to largest. Returns TryOrderedIndicesError if the requested indices are not smallest to largest, or if any index is duplicated or out of bounds.

Enums§

TryIndicesError
The error type returned from the try_indices! macro.
TryIndicesOrderedError
The error type returned from the try_indices_ordered! macro.

Functions§

indices_array
Returns mutable references for the requested indices in the provided array. Panics if any index is out of bounds or duplicate indices.
indices_slice
Returns mutable references for the requested indices in the provided slice. Panics if any index is out of bounds or duplicate indices.
indices_slices
Returns mutable references for the requested indices in the provided slices. Panics if any index is out of bounds or duplicate indices.