Skip to main content

get2

Function get2 

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

Copy the element at (row, col) from a 2-D array slice, returning None if either index is out of bounds.