pub fn traverse<F>(&self, f: F)
        where F: Fn(&Node<T>)
    {
        f(self);
        for child in self.children() {
            child.traverse(&f)
        }
    }
/// Pre-order traversal with the given function.
Pre-order traversal with the given function.
Pre - order traversal with the given function .
pub fn traverse<F>(&self, f: F)
        where F: Fn(&Node<T>)
    {
        f(self);
        for child in self.children() {
            child.traverse(&f)
        }
    }
pub fn traverse < F > ( & self , f : F ) where F : Fn ( & Node < T > ) { f ( self ) ; for child in self . children ( ) { child . traverse ( & f ) } }
Pre-order traversal with the given function.
Pre - order traversal with the given function .
&self
f
F
&self
f
F