pub struct PyModuleSlots {
pub create: Option<fn(&VirtualMachine, &PyObject, &'static PyModuleDef) -> PyResult<PyRef<PyModule>>>,
pub exec: Option<fn(&VirtualMachine, &Py<PyModule>) -> PyResult<()>>,
}Fields§
§create: Option<fn(&VirtualMachine, &PyObject, &'static PyModuleDef) -> PyResult<PyRef<PyModule>>>§exec: Option<fn(&VirtualMachine, &Py<PyModule>) -> PyResult<()>>Trait Implementations§
Source§impl Debug for PyModuleSlots
impl Debug for PyModuleSlots
Source§impl Default for PyModuleSlots
impl Default for PyModuleSlots
Source§fn default() -> PyModuleSlots
fn default() -> PyModuleSlots
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PyModuleSlots
impl RefUnwindSafe for PyModuleSlots
impl Send for PyModuleSlots
impl Sync for PyModuleSlots
impl Unpin for PyModuleSlots
impl UnsafeUnpin for PyModuleSlots
impl UnwindSafe for PyModuleSlots
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more