Type Alias simics_api_sys::bindings::unaryfunc
source · pub type unaryfunc = Option<unsafe extern "C" fn(arg1: *mut PyObject) -> *mut PyObject>;
Expand description
Type objects contain a string containing the type name (to help somewhat in debugging), the allocation parameters (see PyObject_New() and PyObject_NewVar()), and methods for accessing objects of the type. Methods are optional, a nil pointer meaning that particular kind of access is not available for this type. The Py_DECREF() macro uses the tp_dealloc method without checking for a nil pointer; it should always be implemented except if the implementation can guarantee that the reference count will never reach zero (e.g., for statically allocated type objects).
NB: the methods for certain type groups are now contained in separate method blocks.
Aliased Type§
enum unaryfunc {
None,
Some(unsafe extern "C" fn(_: *mut _object) -> *mut _object),
}