pub fn leaf<S, F>(self, title: S, cb: F) -> Self
    where
        S: Into<String>,
        F: 'static + Fn(&mut Cursive),
    {
        self.with(|menu| menu.add_leaf(title, cb))
    }
/// Adds a actionnable leaf to the end of this tree - chainable variant.
Adds a actionnable leaf to the end of this tree - chainable variant.
Adds a actionnable leaf to the end of this tree - chainable variant .
pub fn leaf<S, F>(self, title: S, cb: F) -> Self
    where
        S: Into<String>,
        F: 'static + Fn(&mut Cursive),
    {
        self.with(|menu| menu.add_leaf(title, cb))
    }
pub fn leaf < S , F > ( self , title : S , cb : F ) -> Self where S : Into < String > , F : ' static + Fn ( & mut Cursive ) , { self . with ( | menu | menu . add_leaf ( title , cb ) ) }
Adds a actionnable leaf to the end of this tree - chainable variant.
Adds a actionnable leaf to the end of this tree - chainable variant .
self
title
S
cb
F
self
title
S
cb
F