pub fn open(&self, path: &PathBuf) -> Result<MetadataList, PointCloudError> {
        println!(
            "Opening {:?} with extension {:?}",
            path,
            path.extension().unwrap()
        );
        match path.extension().and_then(OsStr::to_str) {
            Some("dat") => self.open_memmap(path),
            Some("csv") => self.open_csv(path),
            Some("gz") => self.open_csv(path),
            _ => panic!(
                "Please provide either a CSV or a memmaped dat file, not {:?}",
                path
            ),
        }
    }
/// Opens a file, and attemps to create an internal representation of the data with our type
Opens a file, and attemps to create an internal representation of the data with our type
Opens a file and attemps to create an internal representation of the data with our type
pub fn open(&self, path: &PathBuf) -> Result<MetadataList, PointCloudError> {
        println!(
            "Opening {:?} with extension {:?}",
            path,
            path.extension().unwrap()
        );
        match path.extension().and_then(OsStr::to_str) {
            Some("dat") => self.open_memmap(path),
            Some("csv") => self.open_csv(path),
            Some("gz") => self.open_csv(path),
            _ => panic!(
                "Please provide either a CSV or a memmaped dat file, not {:?}",
                path
            ),
        }
    }
pub fn open ( & self , path : & PathBuf ) -> Result < MetadataList , PointCloudError > { println ! ( " " path path extension ( ) unwrap ( ) ) ; match path . extension ( ) . and_then ( OsStr :: to_str ) { Some ( " " ) => self . open_memmap ( path ) , Some ( " " ) => self . open_csv ( path ) , Some ( " " ) => self . open_csv ( path ) , _ => panic ! ( " " path ) , } }
Opens a file, and attemps to create an internal representation of the data with our type
Opens a file and attemps to create an internal representation of the data with our type
&self
path
&PathBuf
&self
path
&PathBuf