You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/rustrogueliketutorial/chapter-69-mushrooms2/src/map
    
    the code of the file until where you have to start completion: use rltk::{ BaseMap, Algorithm2D, Point };
use specs::prelude::*;
use serde::{Serialize, Deserialize};
use std::collections::HashSet;
mod tiletype;
pub use tiletype::{TileType, tile_walkable, tile_opaque, tile_cost};
mod themes;
pub use themes::*;
mod dungeon;
pub use dungeon::{MasterDungeonMap, level_transition, freeze_level_entities, thaw_level_entities};

#[derive(Default, Serialize, Deserialize, Clone)]
pub struct Map {
    pub tiles : Vec<TileType>,
    pub width : i32,
    pub height : i32,
    pub revealed_tiles : Vec<bool>,
    
    pub fn populate_blocked_multi(&mut self, width : i32, height : i32) {
        self.populate_blocked();
        for y in 1 .. self.height-1 {
            for x in 1 .. self.width - 1 {
                let idx = self.xy_idx(x, y);
                if !crate::spatial::is_blocked(idx) {
                    for cy in 0..height {
                        for cx in 0..width {
                            let tx = x + cx;
                            let ty = y + cy;
                            if tx < self.width-1 && ty < self.height-1 {
                                let tidx = self.xy_idx(tx, ty);
                                if crate::spatial::is_blocked(tidx) {
                                    crate::spatial::set_blocked(idx, true);
                                }
                            } else {
                                crate::spatial::set_blocked(idx, true);
                            }
                        }
                    }
                }
            }
        }
    }