pub fn iterate_rectangle(
    pos: coords::Cube,
    width: i32,
    height: i32,
) -> impl Iterator<Item = coords::Cube> {
    (0..height)
        .map(move |row| (0..width).map(move |col| pos + coords::Offset { col, row }))
        .flatten()
}
/// Iterator over a rectangle in offset coordinates.
Iterator over a rectangle in offset coordinates.
Iterator over a rectangle in offset coordinates .
pub fn iterate_rectangle(
    pos: coords::Cube,
    width: i32,
    height: i32,
) -> impl Iterator<Item = coords::Cube> {
    (0..height)
        .map(move |row| (0..width).map(move |col| pos + coords::Offset { col, row }))
        .flatten()
}
pub fn iterate_rectangle ( pos : coords :: Cube , width : i32 , height : i32 , ) -> impl Iterator < Item = coords :: Cube > { ( 0 .. height ) . map ( move | row | ( 0 .. width ) . map ( move | col | pos + coords :: Offset { col , row } ) ) . flatten ( ) }
Iterator over a rectangle in offset coordinates.
Iterator over a rectangle in offset coordinates .
pos
coords::Cube
width
i32
height
i32
pos
coords::Cube
width
i32
height
i32