Struct pyo3::ffi::PyModuleDef

source ·
pub struct PyModuleDef {
    pub m_base: PyModuleDef_Base,
    pub m_name: *const i8,
    pub m_doc: *const i8,
    pub m_size: isize,
    pub m_methods: *mut PyMethodDef,
    pub m_slots: *mut PyModuleDef_Slot,
    pub m_traverse: Option<unsafe extern "C" fn(*mut PyObject, unsafe extern "C" fn(*mut PyObject, *mut c_void) -> i32, *mut c_void) -> i32>,
    pub m_clear: Option<unsafe extern "C" fn(*mut PyObject) -> i32>,
    pub m_free: Option<unsafe extern "C" fn(*mut c_void)>,
}

Fields

m_base: PyModuleDef_Basem_name: *const i8m_doc: *const i8m_size: isizem_methods: *mut PyMethodDefm_slots: *mut PyModuleDef_Slotm_traverse: Option<unsafe extern "C" fn(*mut PyObject, unsafe extern "C" fn(*mut PyObject, *mut c_void) -> i32, *mut c_void) -> i32>m_clear: Option<unsafe extern "C" fn(*mut PyObject) -> i32>m_free: Option<unsafe extern "C" fn(*mut c_void)>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.