/// Removes a child from this node, returning the child node if it existed. Doesn't affect
/// dynamically generated children.
Removes a child from this node, returning the child node if it existed. Doesn't affect
dynamically generated children.
Removes a child from this node returning the child node if it existed . Doesn ' t affect dynamically generated children .
pub fn remove_child(&mut self, name: &str) -> Option<Arc<Mutex<ObjectTreeNode>>> {
        self.children
            .iter()
            .position(|child| child.lock().get_name() == name)
            .map(|i| self.children.remove(i))
    }
pub fn remove_child ( & mut self , name : & str ) -> Option < Arc < Mutex < ObjectTreeNode > > > { self . children . iter ( ) . position ( | child | child . lock ( ) . get_name ( ) == name ) . map ( | i | self . children . remove ( i ) ) }
Removes a child from this node, returning the child node if it existed.
Removes a child from this node returning the child node if it existed .
&mut self
name
&str