Struct oxidized_importer::OxidizedZipFinder
source · [−]pub struct OxidizedZipFinder { /* private fields */ }Expand description
A meta path finder that reads from zip archives.
Known incompatibilities with zipimporter:
- ResourceReader interface not implemented.
- ResourceLoader interface not implemented.
- Bytecode isn’t validated.
Implementations
sourceimpl OxidizedZipFinder
impl OxidizedZipFinder
sourcepub fn new_from_data(
py: Python<'_>,
zip_path: PathBuf,
data: Vec<u8>,
prefix: Option<&Path>
) -> PyResult<Self>
pub fn new_from_data(
py: Python<'_>,
zip_path: PathBuf,
data: Vec<u8>,
prefix: Option<&Path>
) -> PyResult<Self>
Construct a new instance from zip data.
Trait Implementations
sourceimpl IntoPy<Py<PyAny>> for OxidizedZipFinder
impl IntoPy<Py<PyAny>> for OxidizedZipFinder
sourceimpl PyClass for OxidizedZipFinder
impl PyClass for OxidizedZipFinder
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
sourceimpl PyClassImpl for OxidizedZipFinder
impl PyClassImpl for OxidizedZipFinder
sourceconst DOC: &'static str = "A meta path finder that reads from zip archives.\n\nKnown incompatibilities with `zipimporter`:\n\n* ResourceReader interface not implemented.\n* ResourceLoader interface not implemented.\n* Bytecode isn\'t validated.\u{0}"
const DOC: &'static str = "A meta path finder that reads from zip archives.\n\nKnown incompatibilities with `zipimporter`:\n\n* ResourceReader interface not implemented.\n* ResourceLoader interface not implemented.\n* Bytecode isn\'t validated.\u{0}"
Class doc string
sourceconst IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
sourceconst IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
type Layout = PyCell<OxidizedZipFinder>
type Layout = PyCell<OxidizedZipFinder>
Layout
type ThreadChecker = ThreadCheckerStub<OxidizedZipFinder>
type ThreadChecker = ThreadCheckerStub<OxidizedZipFinder>
This handles following two situations: Read more
fn for_all_items(visitor: &mut dyn FnMut(&PyClassItems))
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
sourceimpl PyMethods<OxidizedZipFinder> for PyClassImplCollector<OxidizedZipFinder>
impl PyMethods<OxidizedZipFinder> for PyClassImplCollector<OxidizedZipFinder>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for OxidizedZipFinder
impl PyTypeInfo for OxidizedZipFinder
type AsRefTarget = PyCell<OxidizedZipFinder>
type AsRefTarget = PyCell<OxidizedZipFinder>
Utility type to make Py::as_ref work.
sourceconst MODULE: Option<&'static str> = ::core::option::Option::Some("oxidized_importer")
const MODULE: Option<&'static str> = ::core::option::Option::Some("oxidized_importer")
Module name, if any.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
sourcefn 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.
sourcefn 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 !RefUnwindSafe for OxidizedZipFinder
impl Send for OxidizedZipFinder
impl !Sync for OxidizedZipFinder
impl Unpin for OxidizedZipFinder
impl !UnwindSafe for OxidizedZipFinder
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
sourceimpl<T> PyTypeObject for T where
T: PyTypeInfo,
impl<T> PyTypeObject for T where
T: PyTypeInfo,
sourcefn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.