pub fn all_locations_iter(&self) -> Box<dyn Iterator<Item = &Location> + '_> {
        Box::new(
            self.iter()
                .filter_map(|(_k, square)| square.get_locations().ok())
                .flat_map(IntoIterator::into_iter),
        )
    }
/// Returns a view over all locations in all [`MapSquare`]s of `self` in arbitrary order.
Returns a view over all locations in all [`MapSquare`]s of `self` in arbitrary order.
Returns a view over all locations in all [ ` MapSquare ` ] s of ` self ` in arbitrary order .
pub fn all_locations_iter(&self) -> Box<dyn Iterator<Item = &Location> + '_> {
        Box::new(
            self.iter()
                .filter_map(|(_k, square)| square.get_locations().ok())
                .flat_map(IntoIterator::into_iter),
        )
    }
pub fn all_locations_iter ( & self ) -> Box < dyn Iterator < Item = & Location > + ' _ > { Box :: new ( self . iter ( ) . filter_map ( | ( _k , square ) | square . get_locations ( ) . ok ( ) ) . flat_map ( IntoIterator :: into_iter ) , ) }
Returns a view over all locations in all [`MapSquare`]s of `self` in arbitrary order.
Returns a view over all locations in all [ ` MapSquare ` ] s of ` self ` in arbitrary order .
&self
&self