pub fn insert_subtree<S>(&mut self, i: usize, title: S, tree: MenuTree)
    where
        S: Into<String>,
    {
        let title = title.into();
        let tree = MenuItem::Subtree(title, Rc::new(tree));
        self.insert(i, tree);
    }
/// Inserts a subtree at the given position.
Inserts a subtree at the given position.
Inserts a subtree at the given position .
pub fn insert_subtree<S>(&mut self, i: usize, title: S, tree: MenuTree)
    where
        S: Into<String>,
    {
        let title = title.into();
        let tree = MenuItem::Subtree(title, Rc::new(tree));
        self.insert(i, tree);
    }
pub fn insert_subtree < S > ( & mut self , i : usize , title : S , tree : MenuTree ) where S : Into < String > , { let title = title . into ( ) ; let tree = MenuItem :: Subtree ( title , Rc :: new ( tree ) ) ; self . insert ( i , tree ) ; }
Inserts a subtree at the given position.
Inserts a subtree at the given position .
&mut self
i
usize
title
S
tree
MenuTree
&mut self
i
usize
title
S
tree
MenuTree