Struct python_oxidized_importer::OxidizedFinder [−][src]
pub struct OxidizedFinder { /* fields omitted */ }Expand description
Python type to import modules.
This type implements the importlib.abc.MetaPathFinder interface for finding/loading modules. It supports loading various flavors of modules, allowing it to be the only registered sys.meta_path importer.
Implementations
pub fn new_from_module_and_resources<'a>(
py: Python<'_>,
m: &PyModule,
resources_state: Box<PythonResourcesState<'a, u8>>,
importer_state_callback: Option<impl FnOnce(&mut ImporterState)>
) -> PyResult<OxidizedFinder>
pub fn new_from_module_and_resources<'a>(
py: Python<'_>,
m: &PyModule,
resources_state: Box<PythonResourcesState<'a, u8>>,
importer_state_callback: Option<impl FnOnce(&mut ImporterState)>
) -> PyResult<OxidizedFinder>
Construct an instance from a module and resources state.
Trait Implementations
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)] or not.
type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)] or not.
type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict. Read more
#[pyclass(subclass)]
#[pyclass(extends=…)]
type ThreadChecker = ThreadCheckerStub<OxidizedFinder>
type ThreadChecker = ThreadCheckerStub<OxidizedFinder>
This handles following two situations: Read more
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
PyTypeObject instance for this type.
Checks if object is an instance of this type or a subclass of this type.
Checks if object is an instance of this type.