Struct python_packaging::resource::PythonPackageResource [−][src]
pub struct PythonPackageResource {
pub leaf_package: String,
pub relative_name: String,
pub data: FileData,
pub is_stdlib: bool,
pub is_test: bool,
}Python package resource data, agnostic of storage location.
Fields
leaf_package: StringThe leaf-most Python package this resource belongs to.
relative_name: StringThe relative path within leaf_package to this resource.
data: FileDataLocation of resource data.
is_stdlib: boolWhether this resource belongs to the Python standard library.
Modules with this set are distributed as part of Python itself.
is_test: boolWhether this resource belongs to a package that is a test.
Implementations
impl PythonPackageResource[src]
impl PythonPackageResource[src]pub fn to_memory(&self) -> Result<Self>[src]
pub fn symbolic_name(&self) -> String[src]
pub fn resolve_path(&self, prefix: &str) -> PathBuf[src]
Resolve filesystem path to this bytecode.
Trait Implementations
impl Clone for PythonPackageResource[src]
impl Clone for PythonPackageResource[src]fn clone(&self) -> PythonPackageResource[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> From<&'a PythonPackageResource> for PythonResource<'a>[src]
impl<'a> From<&'a PythonPackageResource> for PythonResource<'a>[src]fn from(r: &'a PythonPackageResource) -> Self[src]
impl<'a> From<PythonPackageResource> for PythonResource<'a>[src]
impl<'a> From<PythonPackageResource> for PythonResource<'a>[src]fn from(r: PythonPackageResource) -> Self[src]
impl PartialEq<PythonPackageResource> for PythonPackageResource[src]
impl PartialEq<PythonPackageResource> for PythonPackageResource[src]fn eq(&self, other: &PythonPackageResource) -> bool[src]
fn ne(&self, other: &PythonPackageResource) -> bool[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonPackageResource
impl RefUnwindSafe for PythonPackageResourceimpl Send for PythonPackageResource
impl Send for PythonPackageResourceimpl Sync for PythonPackageResource
impl Sync for PythonPackageResourceimpl Unpin for PythonPackageResource
impl Unpin for PythonPackageResourceimpl UnwindSafe for PythonPackageResource
impl UnwindSafe for PythonPackageResource