pub fn add_leaf<S, F>(&mut self, title: S, cb: F)
    where
        S: Into<String>,
        F: 'static + Fn(&mut Cursive),
    {
        let i = self.children.len();
        self.insert_leaf(i, title, cb);
    }
/// Adds a actionnable leaf to the end of this tree.
Adds a actionnable leaf to the end of this tree.
Adds a actionnable leaf to the end of this tree .
pub fn add_leaf<S, F>(&mut self, title: S, cb: F)
    where
        S: Into<String>,
        F: 'static + Fn(&mut Cursive),
    {
        let i = self.children.len();
        self.insert_leaf(i, title, cb);
    }
pub fn add_leaf < S , F > ( & mut self , title : S , cb : F ) where S : Into < String > , F : ' static + Fn ( & mut Cursive ) , { let i = self . children . len ( ) ; self . insert_leaf ( i , title , cb ) ; }
Adds a actionnable leaf to the end of this tree.
Adds a actionnable leaf to the end of this tree .
&mut self
title
S
cb
F
&mut self
title
S
cb
F