Skip to main content

get2_mut

Function get2_mut 

Source
fn get2_mut<T, const C: usize>(
    arr: &mut [[T; C]],
    row: usize,
    col: usize,
) -> Option<&mut T>
Expand description

Return a mutable reference to (row, col) in a 2-D array slice, returning None if either index is out of bounds.