Struct pyo3_ffi::PyModuleDef
source · [−]#[repr(C)]pub struct PyModuleDef {
pub m_base: PyModuleDef_Base,
pub m_name: *const c_char,
pub m_doc: *const c_char,
pub m_size: Py_ssize_t,
pub m_methods: *mut PyMethodDef,
pub m_slots: *mut PyModuleDef_Slot,
pub m_traverse: Option<traverseproc>,
pub m_clear: Option<inquiry>,
pub m_free: Option<freefunc>,
}
Fields
m_base: PyModuleDef_Base
m_name: *const c_char
m_doc: *const c_char
m_size: Py_ssize_t
m_methods: *mut PyMethodDef
m_slots: *mut PyModuleDef_Slot
m_traverse: Option<traverseproc>
m_clear: Option<inquiry>
m_free: Option<freefunc>
Trait Implementations
sourceimpl Clone for PyModuleDef
impl Clone for PyModuleDef
sourcefn clone(&self) -> PyModuleDef
fn clone(&self) -> PyModuleDef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for PyModuleDef
Auto Trait Implementations
impl RefUnwindSafe for PyModuleDef
impl !Send for PyModuleDef
impl !Sync for PyModuleDef
impl Unpin for PyModuleDef
impl UnwindSafe for PyModuleDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more