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_Base§m_name: *const i8§m_doc: *const i8§m_size: isize§m_methods: *mut PyMethodDef§m_slots: *mut PyModuleDef_Slot§m_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.