pub fn with_tree_if<B: AsRef<[u8]>>(
        mut self,
        condition: bool,
        label: B,
        tree: LazyTree<'a>,
    ) -> Self {
        if condition {
            self.0.insert(Label::from(label), Lazy::Value(tree));
        }
        self
    }
/// If condition is true, adds a new subtree to this map.
/// Otherwise does nothing.
If condition is true, adds a new subtree to this map.
Otherwise does nothing.
If condition is true adds a new subtree to this map . Otherwise does nothing .
pub fn with_tree_if<B: AsRef<[u8]>>(
        mut self,
        condition: bool,
        label: B,
        tree: LazyTree<'a>,
    ) -> Self {
        if condition {
            self.0.insert(Label::from(label), Lazy::Value(tree));
        }
        self
    }
pub fn with_tree_if < B : AsRef < [ u8 ] > > ( mut self , condition : bool , label : B , tree : LazyTree < ' a > , ) -> Self { if condition { self . 0 . insert ( Label :: from ( label ) , Lazy :: Value ( tree ) ) ; } self }
If condition is true, adds a new subtree to this map.
If condition is true adds a new subtree to this map .
mut self
condition
bool
label
B
tree
LazyTree<'a>
mut self
condition
bool
label
B
tree
LazyTree<'a>