[][src]Struct pyo3::ffi::PyTypeObject

#[repr(C)]pub struct PyTypeObject {
    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: Option<destructor>,
    pub tp_print: Option<printfunc>,
    pub tp_getattr: Option<getattrfunc>,
    pub tp_setattr: Option<setattrfunc>,
    pub tp_as_async: *mut PyAsyncMethods,
    pub tp_repr: Option<reprfunc>,
    pub tp_as_number: *mut PyNumberMethods,
    pub tp_as_sequence: *mut PySequenceMethods,
    pub tp_as_mapping: *mut PyMappingMethods,
    pub tp_hash: Option<hashfunc>,
    pub tp_call: Option<ternaryfunc>,
    pub tp_str: Option<reprfunc>,
    pub tp_getattro: Option<getattrofunc>,
    pub tp_setattro: Option<setattrofunc>,
    pub tp_as_buffer: *mut PyBufferProcs,
    pub tp_flags: c_ulong,
    pub tp_doc: *const c_char,
    pub tp_traverse: Option<traverseproc>,
    pub tp_clear: Option<inquiry>,
    pub tp_richcompare: Option<richcmpfunc>,
    pub tp_weaklistoffset: Py_ssize_t,
    pub tp_iter: Option<getiterfunc>,
    pub tp_iternext: Option<iternextfunc>,
    pub tp_methods: *mut PyMethodDef,
    pub tp_members: *mut PyMemberDef,
    pub tp_getset: *mut PyGetSetDef,
    pub tp_base: *mut PyTypeObject,
    pub tp_dict: *mut PyObject,
    pub tp_descr_get: Option<descrgetfunc>,
    pub tp_descr_set: Option<descrsetfunc>,
    pub tp_dictoffset: Py_ssize_t,
    pub tp_init: Option<initproc>,
    pub tp_alloc: Option<allocfunc>,
    pub tp_new: Option<newfunc>,
    pub tp_free: Option<freefunc>,
    pub tp_is_gc: Option<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: Option<destructor>,
    pub tp_version_tag: c_uint,
    pub tp_finalize: Option<destructor>,
}

Fields

ob_base: PyVarObjecttp_name: *const c_chartp_basicsize: Py_ssize_ttp_itemsize: Py_ssize_ttp_dealloc: Option<destructor>tp_print: Option<printfunc>tp_getattr: Option<getattrfunc>tp_setattr: Option<setattrfunc>tp_as_async: *mut PyAsyncMethodstp_repr: Option<reprfunc>tp_as_number: *mut PyNumberMethodstp_as_sequence: *mut PySequenceMethodstp_as_mapping: *mut PyMappingMethodstp_hash: Option<hashfunc>tp_call: Option<ternaryfunc>tp_str: Option<reprfunc>tp_getattro: Option<getattrofunc>tp_setattro: Option<setattrofunc>tp_as_buffer: *mut PyBufferProcstp_flags: c_ulongtp_doc: *const c_chartp_traverse: Option<traverseproc>tp_clear: Option<inquiry>tp_richcompare: Option<richcmpfunc>tp_weaklistoffset: Py_ssize_ttp_iter: Option<getiterfunc>tp_iternext: Option<iternextfunc>tp_methods: *mut PyMethodDeftp_members: *mut PyMemberDeftp_getset: *mut PyGetSetDeftp_base: *mut PyTypeObjecttp_dict: *mut PyObjecttp_descr_get: Option<descrgetfunc>tp_descr_set: Option<descrsetfunc>tp_dictoffset: Py_ssize_ttp_init: Option<initproc>tp_alloc: Option<allocfunc>tp_new: Option<newfunc>tp_free: Option<freefunc>tp_is_gc: Option<inquiry>tp_bases: *mut PyObjecttp_mro: *mut PyObjecttp_cache: *mut PyObjecttp_subclasses: *mut PyObjecttp_weaklist: *mut PyObjecttp_del: Option<destructor>tp_version_tag: c_uinttp_finalize: Option<destructor>

Trait Implementations

impl Clone for PyTypeObject[src]

impl Copy for PyTypeObject[src]

impl Debug for PyTypeObject[src]

Auto Trait Implementations

impl RefUnwindSafe for PyTypeObject

impl !Send for PyTypeObject

impl !Sync for PyTypeObject

impl Unpin for PyTypeObject

impl UnwindSafe for PyTypeObject

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.