pub fn pre_order<'a, F>(self, cx: &mut ModuleContext<'a>, mut f: F)
    where
        F: FnMut(&mut ModuleContext<'a>, Module),
    {
        let mut stack = vec![self];
        while let Some(module) = stack.pop() {
            f(cx, module);
            let info = cx.defined(module);
            stack.extend(info.modules.iter().copied().rev());
        }
    }
/// Do a pre-order traversal over this module tree.
Do a pre-order traversal over this module tree.
Do a pre - order traversal over this module tree .
pub fn pre_order<'a, F>(self, cx: &mut ModuleContext<'a>, mut f: F)
    where
        F: FnMut(&mut ModuleContext<'a>, Module),
    {
        let mut stack = vec![self];
        while let Some(module) = stack.pop() {
            f(cx, module);
            let info = cx.defined(module);
            stack.extend(info.modules.iter().copied().rev());
        }
    }
pub fn pre_order < ' a , F > ( self , cx : & mut ModuleContext < ' a > , mut f : F ) where F : FnMut ( & mut ModuleContext < ' a > , Module ) , { let mut stack = vec ! [ self ] ; while let Some ( module ) = stack . pop ( ) { f ( cx , module ) ; let info = cx . defined ( module ) ; stack . extend ( info . modules . iter ( ) . copied ( ) . rev ( ) ) ; } }
Do a pre-order traversal over this module tree.
Do a pre - order traversal over this module tree .
self
cx
&mut ModuleContext<'a>
f
F
self
cx
&mut ModuleContext<'a>
f
F