pub fn swap(&mut self, gc_context: MutationContext<'gc, '_>, other: Self) {
        if !GcCell::ptr_eq(self.0, other.0) {
            swap(
                &mut *self.0.write(gc_context),
                &mut *other.0.write(gc_context),
            );
        }
    }
/// Swap the contents of this node with another one.
///
/// After this function completes, the current `XMLNode` will contain all
/// data present in the `other` node, and vice versa. References to the node
/// will *not* be updated: it is a logic error to swap nodes that have
/// existing referents.
Swap the contents of this node with another one.
After this function completes, the current `XMLNode` will contain all
data present in the `other` node, and vice versa. References to the node
will *not* be updated: it is a logic error to swap nodes that have
existing referents.
Swap the contents of this node with another one . After this function completes the current ` XMLNode ` will contain all data present in the ` other ` node and vice versa . References to the node will * not * be updated : it is a logic error to swap nodes that have existing referents .
pub fn swap(&mut self, gc_context: MutationContext<'gc, '_>, other: Self) {
        if !GcCell::ptr_eq(self.0, other.0) {
            swap(
                &mut *self.0.write(gc_context),
                &mut *other.0.write(gc_context),
            );
        }
    }
pub fn swap ( & mut self , gc_context : MutationContext < ' gc , ' _ > , other : Self ) { if ! GcCell :: ptr_eq ( self . 0 , other . 0 ) { swap ( & mut * self . 0 . write ( gc_context ) , & mut * other . 0 . write ( gc_context ) , ) ; } }
Swap the contents of this node with another one.
Swap the contents of this node with another one .
&mut self
gc_context
MutationContext<'gc, '_>
other
Self