pub fn new<P>(directory: P, pool: Arc<ThreadPool>) -> Self
    where
        P: Into<PathBuf>,
    {
        Loader {
            directory: Arc::new(Directory::new(directory)),
            hot_reload: true,
            pool,
            sources: Default::default(),
        }
    }
/// Creates a new asset loader, initializing the directory store with the
/// given path.
Creates a new asset loader, initializing the directory store with the
given path.
Creates a new asset loader initializing the directory store with the given path .
pub fn new<P>(directory: P, pool: Arc<ThreadPool>) -> Self
    where
        P: Into<PathBuf>,
    {
        Loader {
            directory: Arc::new(Directory::new(directory)),
            hot_reload: true,
            pool,
            sources: Default::default(),
        }
    }
pub fn new < P > ( directory : P , pool : Arc < ThreadPool > ) -> Self where P : Into < PathBuf > , { Loader { directory : Arc :: new ( Directory :: new ( directory ) ) , hot_reload : true , pool , sources : Default :: default ( ) , } }
Creates a new asset loader, initializing the directory store with the
given path.
Creates a new asset loader initializing the directory store with the given path .
directory
P
pool
Arc<ThreadPool>
directory
P
pool
Arc<ThreadPool>