fn disown_siblings(&mut self, mc: MutationContext<'gc, '_>) {
        let old_prev = self.prev_sibling();
        let old_next = self.next_sibling();

        if let Some(mut prev) = old_prev {
            prev.set_next_sibling(mc, old_next);
        }

        if let Some(mut next) = old_next {
            next.set_prev_sibling(mc, old_prev);
        }

        self.set_prev_sibling(mc, None);
        self.set_next_sibling(mc, None);
    }
/// Remove node from its current siblings list.
///
/// If a former sibling exists, we will also adopt it to the opposing side
/// of this node, so as to maintain a coherent sibling list.
///
/// This is the opposite of `adopt_siblings` - the former adds a node to a
/// new sibling list, and this removes it from the current one.
Remove node from its current siblings list.
If a former sibling exists, we will also adopt it to the opposing side
of this node, so as to maintain a coherent sibling list.

This is the opposite of `adopt_siblings` - the former adds a node to a
new sibling list, and this removes it from the current one.
Remove node from its current siblings list . If a former sibling exists we will also adopt it to the opposing side of this node so as to maintain a coherent sibling list . This is the opposite of ` adopt_siblings ` - the former adds a node to a new sibling list and this removes it from the current one .
fn disown_siblings(&mut self, mc: MutationContext<'gc, '_>) {
        let old_prev = self.prev_sibling();
        let old_next = self.next_sibling();
        if let Some(mut prev) = old_prev {
            prev.set_next_sibling(mc, old_next);
        }
        if let Some(mut next) = old_next {
            next.set_prev_sibling(mc, old_prev);
        }
        self.set_prev_sibling(mc, None);
        self.set_next_sibling(mc, None);
    }
fn disown_siblings ( & mut self , mc : MutationContext < ' gc , ' _ > ) { let old_prev = self . prev_sibling ( ) ; let old_next = self . next_sibling ( ) ; if let Some ( mut prev ) = old_prev { prev . set_next_sibling ( mc , old_next ) ; } if let Some ( mut next ) = old_next { next . set_prev_sibling ( mc , old_prev ) ; } self . set_prev_sibling ( mc , None ) ; self . set_next_sibling ( mc , None ) ; }
Remove node from its current siblings list.
Remove node from its current siblings list .
&mut self
mc
MutationContext<'gc, '_>