Macro indices::try_indices_ordered

source ·
macro_rules! try_indices_ordered {
    ($slice:expr, $( $index:expr ),+) => { ... };
}
Expand description

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 indicies are not smallest to largest, or if any index is duplicated or out of bounds.