pub fn from_paths(paths: Vec<PathBuf>) -> Self {
        let plugins = paths.iter()
            .flat_map(|path| {
                match load_plugins(path) {
                    Ok(plugins) => plugins,
                    Err(err) => {
                        print_err!("error loading plugins from {:?}, error:\n{:?}",
                                   path, err);
                        Vec::new()
                    }
                }
            })
            .collect::<Vec<_>>();
        PluginCatalog::new(&plugins)
    }
/// Loads plugins from the user's search paths
Loads plugins from the user's search paths
Loads plugins from the user ' s search paths
pub fn from_paths(paths: Vec<PathBuf>) -> Self {
        let plugins = paths.iter()
            .flat_map(|path| {
                match load_plugins(path) {
                    Ok(plugins) => plugins,
                    Err(err) => {
                        print_err!("error loading plugins from {:?}, error:\n{:?}",
                                   path, err);
                        Vec::new()
                    }
                }
            })
            .collect::<Vec<_>>();
        PluginCatalog::new(&plugins)
    }
pub fn from_paths ( paths : Vec < PathBuf > ) -> Self { let plugins = paths . iter ( ) . flat_map ( | path | { match load_plugins ( path ) { Ok ( plugins ) => plugins , Err ( err ) => { print_err ! ( " \n " path err ) ; Vec :: new ( ) } } } ) . collect :: < Vec < _ > > ( ) ; PluginCatalog :: new ( & plugins ) }
Loads plugins from the user's search paths
Loads plugins from the user ' s search paths
paths
Vec<PathBuf>