/// Write curren ScanMap to .json file
Write curren ScanMap to .json file
Write curren ScanMap to . json file
fn write(&self, p: &Path) -> Result<(), Box<dyn Error>> {
	   let file = OpenOptions::new().read(true).write(true).create(true).open(p)?;
	   let writer = BufWriter::new(file);
	   serde_json::to_writer(writer, self)?;
	   Ok(())
    }
fn write ( & self , p : & Path ) -> Result < ( ) , Box < dyn Error > > { let file = OpenOptions :: new ( ) . read ( true ) . write ( true ) . create ( true ) . open ( p ) ? ; let writer = BufWriter :: new ( file ) ; serde_json :: to_writer ( writer , self ) ? ; Ok ( ( ) ) }
Write curren ScanMap to .json file
Write curren ScanMap to . json file
&self
p
&Path