fn neighbourhood_neumann(coord: (u32, u32)) -> [(u32, u32); 4] {
    [
        (coord.0.wrapping_sub(1), coord.1),
        (coord.0.wrapping_add(1), coord.1),
        (coord.0, coord.1.wrapping_sub(1)),
        (coord.0, coord.1.wrapping_add(1)),
    ]
}
/// Returns Von Neumann neighbourhood coordinates as an array [up, down, left, right].
Returns Von Neumann neighbourhood coordinates as an array [up, down, left, right].
Returns Von Neumann neighbourhood coordinates as an array [ up down left right ] .
fn neighbourhood_neumann(coord: (u32, u32)) -> [(u32, u32); 4] {
    [
        (coord.0.wrapping_sub(1), coord.1),
        (coord.0.wrapping_add(1), coord.1),
        (coord.0, coord.1.wrapping_sub(1)),
        (coord.0, coord.1.wrapping_add(1)),
    ]
}
fn neighbourhood_neumann ( coord : ( u32 , u32 ) ) -> [ ( u32 , u32 ) ; 4 ] { [ ( coord . 0 . wrapping_sub ( 1 ) , coord . 1 ) , ( coord . 0 . wrapping_add ( 1 ) , coord . 1 ) , ( coord . 0 , coord . 1 . wrapping_sub ( 1 ) ) , ( coord . 0 , coord . 1 . wrapping_add ( 1 ) ) , ] }
Returns Von Neumann neighbourhood coordinates as an array [up, down, left, right].
Returns Von Neumann neighbourhood coordinates as an array [ up down left right ] .
coord
(u32, u32)