pub fn with<F, R>(f: F) -> R
    where
        for<'a> F: FnOnce(&'a DepGraph<'a>) -> R,
    {
        if !Self::is_initialized() {
            Self::load().unwrap();
        }

        let g = DEPGRAPH.get().unwrap();
        f(g.depgraph())
    }
/// Run the closure with the loaded dep graph.
///
/// # Panics
///
/// Panics if the graph is not loaded, and a graph
/// file name is not registered.
///
/// Panics if the graph is not yet loaded, and opening
/// the graph results in an error.
Run the closure with the loaded dep graph.
Run the closure with the loaded dep graph .
pub fn with<F, R>(f: F) -> R
    where
        for<'a> F: FnOnce(&'a DepGraph<'a>) -> R,
    {
        if !Self::is_initialized() {
            Self::load().unwrap();
        }
        let g = DEPGRAPH.get().unwrap();
        f(g.depgraph())
    }
pub fn with < F , R > ( f : F ) -> R where for < ' a > F : FnOnce ( & ' a DepGraph < ' a > ) -> R , { if ! Self :: is_initialized ( ) { Self :: load ( ) . unwrap ( ) ; } let g = DEPGRAPH . get ( ) . unwrap ( ) ; f ( g . depgraph ( ) ) }
Run the closure with the loaded dep graph.
Run the closure with the loaded dep graph .
f
F
panics
Panics if the graph is not loaded, and a graph
file name is not registered.

Panics if the graph is not yet loaded, and opening
the graph results in an error.
Panics if the graph is not loaded and a graph file name is not registered . Panics if the graph is not yet loaded and opening the graph results in an error .