pub unsafe fn object_get_state(obj: *const Object) -> Result<State>
Pointers must be valid for the call.