fn export(&self, path: &path::Path, use_json: Option<bool>, index: Option<usize>) -> Result<()> {
    // If no boolean is given then resolve using path file extensions
    if use_json == None {
      return Ok(file::export(index, path, self)?);
    }

    // If explicit boolean given then can just skip file extension resolution
    // TODO: remove this and replace with just file::export, since that has parent path validation
    if use_json.unwrap() {
      Ok(file::export_json(path, self)?)
    } else {
      Ok(file::export_csv(path, self)?)
    }
  }
// Exports a Table to a csv or json file in the user file system
Exports a Table to a csv or json file in the user file system
Exports a Table to a csv or json file in the user file system
fn export(&self, path: &path::Path, use_json: Option<bool>, index: Option<usize>) -> Result<()> {
    // If no boolean is given then resolve using path file extensions
    if use_json == None {
      return Ok(file::export(index, path, self)?);
    }
    // If explicit boolean given then can just skip file extension resolution
    // TODO: remove this and replace with just file::export, since that has parent path validation
    if use_json.unwrap() {
      Ok(file::export_json(path, self)?)
    } else {
      Ok(file::export_csv(path, self)?)
    }
  }
fn export ( & self , path : & path :: Path , use_json : Option < bool > , index : Option < usize > ) -> Result < ( ) > { // If no boolean is given then resolve using path file extensions if use_json == None { return Ok ( file :: export ( index , path , self ) ? ) ; } // If explicit boolean given then can just skip file extension resolution // TODO: remove this and replace with just file::export, since that has parent path validation if use_json . unwrap ( ) { Ok ( file :: export_json ( path , self ) ? ) } else { Ok ( file :: export_csv ( path , self ) ? ) } }
Exports a Table to a csv or json file in the user file system
Exports a Table to a csv or json file in the user file system
&self
path
&path::Path
use_json
Option<bool>
index
Option<usize>