pub fn locations(&self) -> impl Iterator<Item = Loc> + '_ {
        let width = self.get_width();
        let height = self.get_height();
        (0..height).flat_map(move |y| (0..width).map(move |x| Loc::new(x, y)))
    }
/// Returns an iterator over all the locations that are in the board.
Returns an iterator over all the locations that are in the board.
Returns an iterator over all the locations that are in the board .
pub fn locations(&self) -> impl Iterator<Item = Loc> + '_ {
        let width = self.get_width();
        let height = self.get_height();
        (0..height).flat_map(move |y| (0..width).map(move |x| Loc::new(x, y)))
    }
pub fn locations ( & self ) -> impl Iterator < Item = Loc > + ' _ { let width = self . get_width ( ) ; let height = self . get_height ( ) ; ( 0 .. height ) . flat_map ( move | y | ( 0 .. width ) . map ( move | x | Loc :: new ( x , y ) ) ) }
Returns an iterator over all the locations that are in the board.
Returns an iterator over all the locations that are in the board .
&self
&self