pub fn from_file<P: AsRef<Path>>(path: P) -> PointCloudResult<PointCloud<M>> {
        let mut config_file =
            File::open(&path).expect(&format!("Unable to read config file {:?}", &path.as_ref()));
        let mut config = String::new();

        config_file
            .read_to_string(&mut config)
            .expect(&format!("Unable to read config file {:?}", &path.as_ref()));
        let params_files = YamlLoader::load_from_str(&config).unwrap();

        PointCloud::<M>::from_yaml(&params_files[0])
    }
/// Runs `from_yaml` on the file at a given path
Runs `from_yaml` on the file at a given path
Runs ` from_yaml ` on the file at a given path
pub fn from_file<P: AsRef<Path>>(path: P) -> PointCloudResult<PointCloud<M>> {
        let mut config_file =
            File::open(&path).expect(&format!("Unable to read config file {:?}", &path.as_ref()));
        let mut config = String::new();
        config_file
            .read_to_string(&mut config)
            .expect(&format!("Unable to read config file {:?}", &path.as_ref()));
        let params_files = YamlLoader::load_from_str(&config).unwrap();
        PointCloud::<M>::from_yaml(&params_files[0])
    }
pub fn from_file < P : AsRef < Path > > ( path : P ) -> PointCloudResult < PointCloud < M > > { let mut config_file = File :: open ( & path ) . expect ( & format ! ( " " path as_ref ( ) ) ) ; let mut config = String :: new ( ) ; config_file . read_to_string ( & mut config ) . expect ( & format ! ( " " path as_ref ( ) ) ) ; let params_files = YamlLoader :: load_from_str ( & config ) . unwrap ( ) ; PointCloud :: < M > :: from_yaml ( & params_files [ 0 ] ) }
Runs `from_yaml` on the file at a given path
Runs ` from_yaml ` on the file at a given path
path
P
path
P