Struct python3_sys::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_Basem_name: *const c_charm_doc: *const c_charm_size: Py_ssize_tm_methods: *mut PyMethodDefm_slots: *mut PyModuleDef_Slotm_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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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