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§
Source§impl 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§
Source§impl PyClass for OxidizedZipFinder
impl PyClass for OxidizedZipFinder
Source§impl PyClassImpl for OxidizedZipFinder
impl PyClassImpl for OxidizedZipFinder
Source§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}"
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
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<OxidizedZipFinder>
type Layout = PyCell<OxidizedZipFinder>
Layout
Source§type ThreadChecker = ThreadCheckerStub<OxidizedZipFinder>
type ThreadChecker = ThreadCheckerStub<OxidizedZipFinder>
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 OxidizedZipFinder
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a OxidizedZipFinder
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut OxidizedZipFinder
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut OxidizedZipFinder
Source§impl PyMethods<OxidizedZipFinder> for PyClassImplCollector<OxidizedZipFinder>
impl PyMethods<OxidizedZipFinder> for PyClassImplCollector<OxidizedZipFinder>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for OxidizedZipFinder
impl PyTypeInfo for OxidizedZipFinder
Source§type AsRefTarget = PyCell<OxidizedZipFinder>
type AsRefTarget = PyCell<OxidizedZipFinder>
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 OxidizedZipFinder
impl !RefUnwindSafe for OxidizedZipFinder
impl Send for OxidizedZipFinder
impl !Sync for OxidizedZipFinder
impl Unpin for OxidizedZipFinder
impl !UnwindSafe for OxidizedZipFinder
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