pub unsafe fn object_update_layout(obj: *const Object) -> Result<()>
This function is unsafe because it may dereference raw pointers.