We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0faa95b commit d78aeeeCopy full SHA for d78aeee
pyembed/src/python_resources.rs
@@ -18,10 +18,20 @@ use {
18
/// Named resources in a single Python package.
19
type PythonPackageResources = HashMap<&'static str, &'static [u8]>;
20
21
+/// Defines the location of an importable Python module.
22
#[derive(Debug)]
23
pub(crate) enum PythonModuleLocation {
24
+ /// A builtin extension module.
25
+ ///
26
+ /// The module will need to be imported by `BuiltinImporter`.
27
Builtin,
28
+
29
+ /// A frozen bytecode module.
30
31
+ /// The module will need to be imported by `FrozenImporter`.
32
Frozen,
33
34
+ /// Module content provided by a memory address.
35
InMemory {
36
source: Option<&'static [u8]>,
37
bytecode: Option<&'static [u8]>,
0 commit comments