Struct pyembed::ExtensionModule
source · pub struct ExtensionModule {
pub name: CString,
pub init_func: unsafe extern "C" fn() -> *mut PyObject,
}
Expand description
Defines a Python extension module and its initialization function.
Essentially represents a module name and pointer to its initialization function.
Fields§
§name: CString
Name of the extension module.
init_func: unsafe extern "C" fn() -> *mut PyObject
Extension module initialization function.
Trait Implementations§
source§impl Clone for ExtensionModule
impl Clone for ExtensionModule
source§fn clone(&self) -> ExtensionModule
fn clone(&self) -> ExtensionModule
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 more