pub fn load() -> Result<(), String> {
        let _depgraph = DEPGRAPH.get_or_try_init::<_, String>(|| {
            let depgraph_fn: Option<&OsString> = DEPGRAPH_FILENAME.get();
            let depgraph_fn = depgraph_fn.unwrap_or_else(|| {
                panic!("programming error: cannot call load before registering path")
            });

            let opener = DepGraphOpener::from_path(&depgraph_fn)
                .map_err(|err| format!("could not open dep graph file: {:?}", err))?;
            let depgraph = UnsafeDepGraph::new(opener)?;
            Ok(depgraph)
        })?;

        Ok(())
    }
/// Load the graph using `DEPGRAPH_FILENAME`
///
/// A no-op if the graph is already loaded.
///
/// # Panics
///
/// If this function is called before first registering
/// the file path using `register`.
Load the graph using `DEPGRAPH_FILENAME`
A no-op if the graph is already loaded.
Load the graph using ` DEPGRAPH_FILENAME ` A no - op if the graph is already loaded .
pub fn load() -> Result<(), String> {
        let _depgraph = DEPGRAPH.get_or_try_init::<_, String>(|| {
            let depgraph_fn: Option<&OsString> = DEPGRAPH_FILENAME.get();
            let depgraph_fn = depgraph_fn.unwrap_or_else(|| {
                panic!("programming error: cannot call load before registering path")
            });
            let opener = DepGraphOpener::from_path(&depgraph_fn)
                .map_err(|err| format!("could not open dep graph file: {:?}", err))?;
            let depgraph = UnsafeDepGraph::new(opener)?;
            Ok(depgraph)
        })?;
        Ok(())
    }
pub fn load ( ) -> Result < ( ) , String > { let _depgraph = DEPGRAPH . get_or_try_init :: < _ , String > ( | | { let depgraph_fn : Option < & OsString > = DEPGRAPH_FILENAME . get ( ) ; let depgraph_fn = depgraph_fn . unwrap_or_else ( | | { panic ! ( " " ) } ) ; let opener = DepGraphOpener :: from_path ( & depgraph_fn ) . map_err ( | err | format ! ( " " err ) ) ? ; let depgraph = UnsafeDepGraph :: new ( opener ) ? ; Ok ( depgraph ) } ) ? ; Ok ( ( ) ) }
Load the graph using `DEPGRAPH_FILENAME`
A no-op if the graph is already loaded.
Load the graph using ` DEPGRAPH_FILENAME ` A no - op if the graph is already loaded .
panics
If this function is called before first registering
the file path using `register`.
If this function is called before first registering the file path using ` register ` .