Macro indices::indices_ordered

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

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