[−][src]Trait nphysics3d::utils::IndexMut2
Methods for simultaneously indexing a container with two distinct indices.
Required methods
fn index_mut2(
&mut self,
i: usize,
j: usize
) -> (&mut Self::Output, &mut Self::Output)
&mut self,
i: usize,
j: usize
) -> (&mut Self::Output, &mut Self::Output)
Gets mutable references to two distinct elements of the container.
Panics if i == j
.
Provided methods
fn index_mut_const(
&mut self,
i: usize,
j: usize
) -> (&mut Self::Output, &Self::Output)
&mut self,
i: usize,
j: usize
) -> (&mut Self::Output, &Self::Output)
Gets a mutable reference to one element, and immutable reference to a second one.
Panics if i == j
.
Implementations on Foreign Types
impl<T> IndexMut2<usize> for Vec<T>
[src]
fn index_mut2(&mut self, i: usize, j: usize) -> (&mut T, &mut T)
[src]
fn index_mut_const(
&mut self,
i: usize,
j: usize
) -> (&mut Self::Output, &Self::Output)
[src]
&mut self,
i: usize,
j: usize
) -> (&mut Self::Output, &Self::Output)