pub fn subtree<S>(self, title: S, tree: MenuTree) -> Self
    where
        S: Into<String>,
    {
        self.with(|menu| menu.add_subtree(title, tree))
    }
/// Adds a submenu to the end of this tree - chainable variant.
Adds a submenu to the end of this tree - chainable variant.
Adds a submenu to the end of this tree - chainable variant .
pub fn subtree<S>(self, title: S, tree: MenuTree) -> Self
    where
        S: Into<String>,
    {
        self.with(|menu| menu.add_subtree(title, tree))
    }
pub fn subtree < S > ( self , title : S , tree : MenuTree ) -> Self where S : Into < String > , { self . with ( | menu | menu . add_subtree ( title , tree ) ) }
Adds a submenu to the end of this tree - chainable variant.
Adds a submenu to the end of this tree - chainable variant .
self
title
S
tree
MenuTree
self
title
S
tree
MenuTree