pub trait IndexMut2<I>: IndexMut<I> {
// Required method
fn index_mut2(
&mut self,
i: usize,
j: usize,
) -> (&mut Self::Output, &mut Self::Output);
// Provided method
fn index_mut_const(
&mut self,
i: usize,
j: usize,
) -> (&mut Self::Output, &Self::Output) { ... }
}
Expand description
Methods for simultaneously indexing a container with two distinct indices.