Enum python_packaging::resource::PythonResource [−][src]
pub enum PythonResource<'a> { ModuleSource(Cow<'a, PythonModuleSource>), ModuleBytecodeRequest(Cow<'a, PythonModuleBytecodeFromSource>), ModuleBytecode(Cow<'a, PythonModuleBytecode>), PackageResource(Cow<'a, PythonPackageResource>), PackageDistributionResource(Cow<'a, PythonPackageDistributionResource>), ExtensionModule(Cow<'a, PythonExtensionModule>), EggFile(Cow<'a, PythonEggFile>), PathExtension(Cow<'a, PythonPathExtension>), File(Cow<'a, File>), }
Expand description
Represents a resource that can be read by Python somehow.
Variants
A module defined by source code.
Tuple Fields of ModuleSource
0: Cow<'a, PythonModuleSource>
A module defined by a request to generate bytecode from source.
Tuple Fields of ModuleBytecodeRequest
0: Cow<'a, PythonModuleBytecodeFromSource>
A module defined by existing bytecode.
Tuple Fields of ModuleBytecode
0: Cow<'a, PythonModuleBytecode>
A non-module resource file.
Tuple Fields of PackageResource
0: Cow<'a, PythonPackageResource>
A file in a Python package distribution metadata collection.
Tuple Fields of PackageDistributionResource
0: Cow<'a, PythonPackageDistributionResource>
An extension module.
Tuple Fields of ExtensionModule
0: Cow<'a, PythonExtensionModule>
A self-contained Python egg.
Tuple Fields of EggFile
0: Cow<'a, PythonEggFile>
A path extension.
Tuple Fields of PathExtension
0: Cow<'a, PythonPathExtension>
An arbitrary file and its data.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PythonResource<'a>
impl<'a> Send for PythonResource<'a>
impl<'a> Sync for PythonResource<'a>
impl<'a> Unpin for PythonResource<'a>
impl<'a> UnwindSafe for PythonResource<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self