[−][src]Struct python_packaging::resource::PythonExtensionModule
Represents a Python extension module.
Fields
name: String
The module name this extension module is providing.
init_fn: Option<String>
Name of the C function initializing this extension module.
extension_file_suffix: String
Filename suffix to use when writing extension module data.
File data for linked extension module.
object_file_data: Vec<DataLocation>
File data for object files linked together to produce this extension module.
is_package: bool
Whether this extension module is a package.
link_libraries: Vec<LibraryDependency>
Libraries that this extension depends on.
is_stdlib: bool
Whether this extension module is part of the Python standard library.
This is true if the extension is distributed with Python itself.
builtin_default: bool
Whether the extension module is built-in by default.
Some extension modules in Python distributions are always compiled into libpython. This field will be true for those extension modules.
required: bool
Whether the extension must be loaded to initialize Python.
variant: Option<String>
Name of the variant of this extension module.
This may be set if there are multiple versions of an extension module available to choose from.
licenses: Option<Vec<LicenseInfo>>
Licenses that apply to this extension.
license_public_domain: Option<bool>
Whether the license for this extension and any library dependencies are in the public domain.
Implementations
impl PythonExtensionModule
[src]
pub fn to_memory(&self) -> Result<Self>
[src]
pub fn file_name(&self) -> String
[src]
The file name (without parent components) this extension module should be realized with.
pub fn resolve_path(&self, prefix: &str) -> PathBuf
[src]
Resolve the filesystem path for this extension module.
pub fn package_parts(&self) -> Vec<String>
[src]
Returns the part strings constituting the package name.
pub fn requires_libraries(&self) -> bool
[src]
Whether the extension module requires additional libraries.
pub fn is_minimally_required(&self) -> bool
[src]
Whether the extension module is minimally required for a Python interpreter.
This will be true only for extension modules in the standard library that are builtins part of libpython or are required as part of Python interpreter initialization.
pub fn in_libpython(&self) -> bool
[src]
Whether this extension module is already in libpython.
This is true if this is a stdlib extension module and is a core module or no shared library extension module is available.
Trait Implementations
impl Clone for PythonExtensionModule
[src]
fn clone(&self) -> PythonExtensionModule
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PythonExtensionModule
[src]
impl<'a> From<&'a PythonExtensionModule> for PythonResource<'a>
[src]
fn from(r: &'a PythonExtensionModule) -> Self
[src]
impl<'a> From<PythonExtensionModule> for PythonResource<'a>
[src]
fn from(r: PythonExtensionModule) -> Self
[src]
impl FromIterator<PythonExtensionModule> for PythonExtensionModuleVariants
[src]
fn from_iter<I: IntoIterator<Item = PythonExtensionModule>>(iter: I) -> Self
[src]
impl PartialEq<PythonExtensionModule> for PythonExtensionModule
[src]
fn eq(&self, other: &PythonExtensionModule) -> bool
[src]
fn ne(&self, other: &PythonExtensionModule) -> bool
[src]
impl StructuralPartialEq for PythonExtensionModule
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonExtensionModule
impl Send for PythonExtensionModule
impl Sync for PythonExtensionModule
impl Unpin for PythonExtensionModule
impl UnwindSafe for PythonExtensionModule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,