pub struct PythonConfig { /* private fields */ }
Expand description
Python configuration information
Implementations§
Source§impl PythonConfig
impl PythonConfig
Sourcepub fn version_major(&self) -> u32
pub fn version_major(&self) -> u32
Returns Python major version
Sourcepub fn version_minor(&self) -> u32
pub fn version_minor(&self) -> u32
Returns Python minor version
Sourcepub fn exec_prefix(&self) -> &str
pub fn exec_prefix(&self) -> &str
Returns the executable path prefix for the Python interpreter
Sourcepub fn libs(&self) -> &str
pub fn libs(&self) -> &str
Returns linker flags required for linking this Python
distribution. All libraries / frameworks have the appropriate -l
or -framework
prefixes.
Sourcepub fn ldflags(&self) -> &str
pub fn ldflags(&self) -> &str
Returns linker flags required for creating
a shared library for this Python distribution. All libraries / frameworks
have the appropriate -L
, -l
, or -framework
prefixes.
Sourcepub fn ext_suffix(&self) -> &str
pub fn ext_suffix(&self) -> &str
Returns the file extension for this distribution’s library
Sourcepub fn config_dir(&self) -> &str
pub fn config_dir(&self) -> &str
The location of the distribution’s python3-config
script
Sourcepub fn include_dir(&self) -> &str
pub fn include_dir(&self) -> &str
Returns the C headers include directory
Sourcepub fn ld_version(&self) -> &str
pub fn ld_version(&self) -> &str
Returns ld version
Sourcepub fn shlib_suffix(&self) -> &str
pub fn shlib_suffix(&self) -> &str
Returns shared library suffix
Returns whether this distribution is built with --enable-shared
Sourcepub fn with_thread(&self) -> bool
pub fn with_thread(&self) -> bool
Returns whether this distribution is built with thread
Sourcepub fn pointer_size(&self) -> u32
pub fn pointer_size(&self) -> u32
Returns pointer size (size of C void*
) of this distribution
Trait Implementations§
Source§impl Clone for PythonConfig
impl Clone for PythonConfig
Source§fn clone(&self) -> PythonConfig
fn clone(&self) -> PythonConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more