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
sourceimpl Clone for ExtensionModule
impl Clone for ExtensionModule
sourcefn clone(&self) -> ExtensionModule
fn clone(&self) -> ExtensionModule
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
Auto Trait Implementations
impl RefUnwindSafe for ExtensionModule
impl Send for ExtensionModule
impl Sync for ExtensionModule
impl Unpin for ExtensionModule
impl UnwindSafe for ExtensionModule
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