Struct simics_api_sys::_typeobject
source · #[repr(C)]pub struct _typeobject {Show 49 fields
pub ob_base: PyVarObject,
pub tp_name: *const c_char,
pub tp_basicsize: Py_ssize_t,
pub tp_itemsize: Py_ssize_t,
pub tp_dealloc: destructor,
pub tp_vectorcall_offset: Py_ssize_t,
pub tp_getattr: getattrfunc,
pub tp_setattr: setattrfunc,
pub tp_as_async: *mut PyAsyncMethods,
pub tp_repr: reprfunc,
pub tp_as_number: *mut PyNumberMethods,
pub tp_as_sequence: *mut PySequenceMethods,
pub tp_as_mapping: *mut PyMappingMethods,
pub tp_hash: hashfunc,
pub tp_call: ternaryfunc,
pub tp_str: reprfunc,
pub tp_getattro: getattrofunc,
pub tp_setattro: setattrofunc,
pub tp_as_buffer: *mut PyBufferProcs,
pub tp_flags: c_ulong,
pub tp_doc: *const c_char,
pub tp_traverse: traverseproc,
pub tp_clear: inquiry,
pub tp_richcompare: richcmpfunc,
pub tp_weaklistoffset: Py_ssize_t,
pub tp_iter: getiterfunc,
pub tp_iternext: iternextfunc,
pub tp_methods: *mut PyMethodDef,
pub tp_members: *mut PyMemberDef,
pub tp_getset: *mut PyGetSetDef,
pub tp_base: *mut _typeobject,
pub tp_dict: *mut PyObject,
pub tp_descr_get: descrgetfunc,
pub tp_descr_set: descrsetfunc,
pub tp_dictoffset: Py_ssize_t,
pub tp_init: initproc,
pub tp_alloc: allocfunc,
pub tp_new: newfunc,
pub tp_free: freefunc,
pub tp_is_gc: inquiry,
pub tp_bases: *mut PyObject,
pub tp_mro: *mut PyObject,
pub tp_cache: *mut PyObject,
pub tp_subclasses: *mut PyObject,
pub tp_weaklist: *mut PyObject,
pub tp_del: destructor,
pub tp_version_tag: c_uint,
pub tp_finalize: destructor,
pub tp_vectorcall: vectorcallfunc,
}
Expand description
If this structure is modified, Doc/includes/typestruct.h should be updated as well.
Fields§
§ob_base: PyVarObject
§tp_name: *const c_char
For printing, in format “
tp_basicsize: Py_ssize_t
For allocation
tp_itemsize: Py_ssize_t
For allocation
tp_dealloc: destructor
Methods to implement standard operations
tp_vectorcall_offset: Py_ssize_t
§tp_getattr: getattrfunc
§tp_setattr: setattrfunc
§tp_as_async: *mut PyAsyncMethods
formerly known as tp_compare (Python 2) or tp_reserved (Python 3)
tp_repr: reprfunc
§tp_as_number: *mut PyNumberMethods
Method suites for standard classes
tp_as_sequence: *mut PySequenceMethods
§tp_as_mapping: *mut PyMappingMethods
§tp_hash: hashfunc
More standard operations (here for binary compatibility)
tp_call: ternaryfunc
§tp_str: reprfunc
§tp_getattro: getattrofunc
§tp_setattro: setattrofunc
§tp_as_buffer: *mut PyBufferProcs
Functions to access object as input/output buffer
tp_flags: c_ulong
Flags to define presence of optional/expanded features
tp_doc: *const c_char
Documentation string
tp_traverse: traverseproc
Assigned meaning in release 2.0 / / call function for all accessible objects
tp_clear: inquiry
delete references to contained objects
tp_richcompare: richcmpfunc
Assigned meaning in release 2.1 / / rich comparisons
tp_weaklistoffset: Py_ssize_t
weak reference enabler
tp_iter: getiterfunc
Iterators
tp_iternext: iternextfunc
§tp_methods: *mut PyMethodDef
Attribute descriptor and subclassing stuff
tp_members: *mut PyMemberDef
§tp_getset: *mut PyGetSetDef
§tp_base: *mut _typeobject
Strong reference on a heap type, borrowed reference on a static type
tp_dict: *mut PyObject
§tp_descr_get: descrgetfunc
§tp_descr_set: descrsetfunc
§tp_dictoffset: Py_ssize_t
§tp_init: initproc
§tp_alloc: allocfunc
§tp_new: newfunc
§tp_free: freefunc
Low-level free-memory routine
tp_is_gc: inquiry
For PyObject_IS_GC
tp_bases: *mut PyObject
§tp_mro: *mut PyObject
method resolution order
tp_cache: *mut PyObject
§tp_subclasses: *mut PyObject
§tp_weaklist: *mut PyObject
§tp_del: destructor
§tp_version_tag: c_uint
Type attribute cache version tag. Added in version 2.6
tp_finalize: destructor
§tp_vectorcall: vectorcallfunc
Trait Implementations§
source§impl Clone for _typeobject
impl Clone for _typeobject
source§fn clone(&self) -> _typeobject
fn clone(&self) -> _typeobject
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for _typeobject
impl Debug for _typeobject
source§impl Default for _typeobject
impl Default for _typeobject
source§impl Hash for _typeobject
impl Hash for _typeobject
source§impl Ord for _typeobject
impl Ord for _typeobject
source§fn cmp(&self, other: &_typeobject) -> Ordering
fn cmp(&self, other: &_typeobject) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for _typeobject
impl PartialEq for _typeobject
source§impl PartialOrd for _typeobject
impl PartialOrd for _typeobject
impl Copy for _typeobject
impl Eq for _typeobject
impl StructuralPartialEq for _typeobject
Auto Trait Implementations§
impl Freeze for _typeobject
impl RefUnwindSafe for _typeobject
impl !Send for _typeobject
impl !Sync for _typeobject
impl Unpin for _typeobject
impl UnwindSafe for _typeobject
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)