fn read(p: &Path) -> Result<ScanMap, Box<dyn Error>> {
	   let file = File::open(p)?;
	   let reader = BufReader::new(file);

	   let scan_map = serde_json::from_reader(reader)?;

	   Ok(scan_map)
    }
/// Creates a new ScanMap from an existing json file.
Creates a new ScanMap from an existing json file.
Creates a new ScanMap from an existing json file .
fn read(p: &Path) -> Result<ScanMap, Box<dyn Error>> {
	   let file = File::open(p)?;
	   let reader = BufReader::new(file);
	   let scan_map = serde_json::from_reader(reader)?;
	   Ok(scan_map)
    }
fn read ( p : & Path ) -> Result < ScanMap , Box < dyn Error > > { let file = File :: open ( p ) ? ; let reader = BufReader :: new ( file ) ; let scan_map = serde_json :: from_reader ( reader ) ? ; Ok ( scan_map ) }
Creates a new ScanMap from an existing json file.
Creates a new ScanMap from an existing json file .
p
&Path
p
&Path