Struct python_oxidized_importer::ZipIndex[][src]

pub struct ZipIndex<R: Read + Seek> { /* fields omitted */ }
Expand description

Read Python resources from a zip file.

Instances are bound to a handle on a zip archive. At open time, the zip archive index is read and an index of files within is constructed. File content is resolved when individual members are accessed.

Implementations

Construct a new instance from a reader of zip data and an optional path prefix.

The path prefix denotes the path within the zip file to look for content. All paths outside this prefix are ignored.

Attempt to locate a Python module within the zip archive.

full_name is the fully qualified / dotted Python module name.

Resolve the byte content for a given path.

Errors if the path does not exist.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.