pub fn from_dfa_dir<P: AsRef<Path>>(&self, dfa_dir: P) -> Result<Writer> {
        let mut opts = self.0.clone();
        opts.dfa_dir = Some(dfa_dir.as_ref().to_path_buf());
        let mut fpath = dfa_dir.as_ref().join(rust_module_name(&opts.name));
        fpath.set_extension("rs");
        Ok(Writer {
            wtr: LineWriter::new(Box::new(File::create(fpath)?)),
            wrote_header: false,
            opts,
        })
    }
/// Create a new writer that writes DFAs to a directory.
Create a new writer that writes DFAs to a directory.
Create a new writer that writes DFAs to a directory .
pub fn from_dfa_dir<P: AsRef<Path>>(&self, dfa_dir: P) -> Result<Writer> {
        let mut opts = self.0.clone();
        opts.dfa_dir = Some(dfa_dir.as_ref().to_path_buf());
        let mut fpath = dfa_dir.as_ref().join(rust_module_name(&opts.name));
        fpath.set_extension("rs");
        Ok(Writer {
            wtr: LineWriter::new(Box::new(File::create(fpath)?)),
            wrote_header: false,
            opts,
        })
    }
pub fn from_dfa_dir < P : AsRef < Path > > ( & self , dfa_dir : P ) -> Result < Writer > { let mut opts = self . 0 . clone ( ) ; opts . dfa_dir = Some ( dfa_dir . as_ref ( ) . to_path_buf ( ) ) ; let mut fpath = dfa_dir . as_ref ( ) . join ( rust_module_name ( & opts . name ) ) ; fpath . set_extension ( " " ) ; Ok ( Writer { wtr : LineWriter :: new ( Box :: new ( File :: create ( fpath ) ? ) ) , wrote_header : false , opts , } ) }
Create a new writer that writes DFAs to a directory.
Create a new writer that writes DFAs to a directory .
&self
dfa_dir
P
&self
dfa_dir
P