pub fn insert_leaf<S, F>(&mut self, i: usize, title: S, cb: F)
    where
        S: Into<String>,
        F: 'static + Fn(&mut Cursive),
    {
        let title = title.into();
        self.insert(i, MenuItem::Leaf(title, Callback::from_fn(cb)));
    }
/// Inserts a leaf at the given position.
Inserts a leaf at the given position.
Inserts a leaf at the given position .
pub fn insert_leaf<S, F>(&mut self, i: usize, title: S, cb: F)
    where
        S: Into<String>,
        F: 'static + Fn(&mut Cursive),
    {
        let title = title.into();
        self.insert(i, MenuItem::Leaf(title, Callback::from_fn(cb)));
    }
pub fn insert_leaf < S , F > ( & mut self , i : usize , title : S , cb : F ) where S : Into < String > , F : ' static + Fn ( & mut Cursive ) , { let title = title . into ( ) ; self . insert ( i , MenuItem :: Leaf ( title , Callback :: from_fn ( cb ) ) ) ; }
Inserts a leaf at the given position.
Inserts a leaf at the given position .
&mut self
i
usize
title
S
cb
F
&mut self
i
usize
title
S
cb
F