[][src]Enum pyoxidizerlib::py_packaging::resource::PythonResource

pub enum PythonResource {
    ExtensionModule {
        name: String,
        module: ExtensionModule,
    },
    ModuleSource {
        name: String,
        source: DataLocation,
        is_package: bool,
    },
    ModuleBytecodeRequest {
        name: String,
        source: DataLocation,
        optimize_level: i32,
        is_package: bool,
    },
    ModuleBytecode {
        name: String,
        bytecode: DataLocation,
        optimize_level: BytecodeOptimizationLevel,
        is_package: bool,
    },
    Resource {
        package: String,
        name: String,
        data: DataLocation,
    },
    BuiltExtensionModule(ExtensionModuleData),
}

Represents a resource to make available to the Python interpreter.

Variants

ExtensionModule

Fields of ExtensionModule

name: Stringmodule: ExtensionModule
ModuleSource

Fields of ModuleSource

name: Stringsource: DataLocationis_package: bool
ModuleBytecodeRequest

Fields of ModuleBytecodeRequest

name: Stringsource: DataLocationoptimize_level: i32is_package: bool
ModuleBytecode

Fields of ModuleBytecode

name: Stringbytecode: DataLocationoptimize_level: BytecodeOptimizationLevelis_package: bool
Resource

Fields of Resource

package: Stringname: Stringdata: DataLocation
BuiltExtensionModule(ExtensionModuleData)

Methods

impl PythonResource[src]

pub fn full_name(&self) -> String[src]

Resolves the fully qualified resource name.

pub fn is_in_packages(&self, packages: &[String]) -> bool[src]

Trait Implementations

impl Debug for PythonResource[src]

impl<'a> From<&'a PythonResource> for Value[src]

impl<'_> TryFrom<&'_ PythonFileResource> for PythonResource[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,