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_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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)