/// Remove all children from the container's execution, render, and depth
/// lists.
Remove all children from the container's execution, render, and depth
lists.
Remove all children from the container ' s execution render and depth lists .
pub fn clear(&mut self, gc_context: MutationContext<'gc, '_>) {
        let mut head = self.exec_list;
        while let Some(child) = head {
            let next_head = child.next_sibling();
            child.set_next_sibling(gc_context, None);
            child.set_prev_sibling(gc_context, None);
            head = next_head;
        }
        self.exec_list = None;
        self.render_list.clear();
        self.depth_list.clear();
    }
pub fn clear ( & mut self , gc_context : MutationContext < ' gc , ' _ > ) { let mut head = self . exec_list ; while let Some ( child ) = head { let next_head = child . next_sibling ( ) ; child . set_next_sibling ( gc_context , None ) ; child . set_prev_sibling ( gc_context , None ) ; head = next_head ; } self . exec_list = None ; self . render_list . clear ( ) ; self . depth_list . clear ( ) ; }
Remove all children from the container's execution, render, and depth
lists.
Remove all children from the container ' s execution render and depth lists .
&mut self
gc_context
MutationContext<'gc, '_>