pub struct OxidizedFinder { /* private fields */ }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§
Source§impl OxidizedFinder
impl OxidizedFinder
Sourcepub 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§
Source§impl PyClass for OxidizedFinder
impl PyClass for OxidizedFinder
Source§impl PyClassImpl for OxidizedFinder
impl PyClassImpl for OxidizedFinder
Source§const DOC: &'static str = "Python type to import modules.\n\nThis type implements the importlib.abc.MetaPathFinder interface for\nfinding/loading modules. It supports loading various flavors of modules,\nallowing it to be the only registered sys.meta_path importer.\u{0}"
const DOC: &'static str = "Python type to import modules.\n\nThis type implements the importlib.abc.MetaPathFinder interface for\nfinding/loading modules. It supports loading various flavors of modules,\nallowing it to be the only registered sys.meta_path importer.\u{0}"
Class doc string
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type Layout = PyCell<OxidizedFinder>
type Layout = PyCell<OxidizedFinder>
Layout
Source§type ThreadChecker = ThreadCheckerStub<OxidizedFinder>
type ThreadChecker = ThreadCheckerStub<OxidizedFinder>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§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.fn items_iter() -> PyClassItemsIter
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a OxidizedFinder
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a OxidizedFinder
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut OxidizedFinder
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut OxidizedFinder
Source§impl PyMethods<OxidizedFinder> for PyClassImplCollector<OxidizedFinder>
impl PyMethods<OxidizedFinder> for PyClassImplCollector<OxidizedFinder>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for OxidizedFinder
impl PyTypeInfo for OxidizedFinder
Source§type AsRefTarget = PyCell<OxidizedFinder>
type AsRefTarget = PyCell<OxidizedFinder>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.Auto Trait Implementations§
impl Freeze for OxidizedFinder
impl !RefUnwindSafe for OxidizedFinder
impl Send for OxidizedFinder
impl Sync for OxidizedFinder
impl Unpin for OxidizedFinder
impl !UnwindSafe for OxidizedFinder
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