#[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§
Source§impl Clone for PyModuleDef
impl Clone for PyModuleDef
Source§fn clone(&self) -> PyModuleDef
fn clone(&self) -> PyModuleDef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PyModuleDef
Auto Trait Implementations§
impl Freeze for PyModuleDef
impl RefUnwindSafe for PyModuleDef
impl !Send for PyModuleDef
impl !Sync for PyModuleDef
impl Unpin for PyModuleDef
impl UnwindSafe for PyModuleDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more