pub unsafe fn object_swap(obj1: *mut Object, obj2: *mut Object) -> Result<()>
This function is unsafe because it may dereference raw pointers.