Struct python3_config::PythonConfig [−][src]
Python configuration information
Implementations
impl PythonConfig
[src]
pub fn parse(src: &str) -> Result<Self, Error>
[src]
Parse from _sysconfigdata.py
content
pub fn version(&self) -> &str
[src]
Returns Python version
pub fn version_major(&self) -> u32
[src]
Returns Python major version
pub fn version_minor(&self) -> u32
[src]
Returns Python minor version
pub fn prefix(&self) -> &str
[src]
Returns the installation prefix of the Python interpreter
pub fn exec_prefix(&self) -> &str
[src]
Returns the executable path prefix for the Python interpreter
pub fn cflags(&self) -> &str
[src]
C compilation flags
pub fn libs(&self) -> &str
[src]
Returns linker flags required for linking this Python
distribution. All libraries / frameworks have the appropriate -l
or -framework
prefixes.
pub fn ldflags(&self) -> &str
[src]
Returns linker flags required for creating
a shared library for this Python distribution. All libraries / frameworks
have the appropriate -L
, -l
, or -framework
prefixes.
pub fn ext_suffix(&self) -> &str
[src]
Returns the file extension for this distribution’s library
pub fn abiflags(&self) -> &str
[src]
The ABI flags specified when building this Python distribution
pub fn config_dir(&self) -> &str
[src]
The location of the distribution’s python3-config
script
pub fn include_dir(&self) -> &str
[src]
Returns the C headers include directory
pub fn lib_dir(&self) -> &str
[src]
Returns library directory
pub fn ld_version(&self) -> &str
[src]
Returns ld version
pub fn soabi(&self) -> &str
[src]
Returns SOABI
pub fn shlib_suffix(&self) -> &str
[src]
Returns shared library suffix
pub fn enable_shared(&self) -> bool
[src]
Returns whether this distribution is built with --enable-shared
pub fn debug(&self) -> bool
[src]
Returns whether this distribution is built with Py_DEBUG
pub fn ref_debug(&self) -> bool
[src]
Returns whether this distribution is built with Py_REF_DEBUG
pub fn with_thread(&self) -> bool
[src]
Returns whether this distribution is built with thread
pub fn pointer_size(&self) -> u32
[src]
Returns pointer size (size of C void*
) of this distribution
Trait Implementations
impl Clone for PythonConfig
[src]
fn clone(&self) -> PythonConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PythonConfig
[src]
impl FromStr for PythonConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonConfig
impl Send for PythonConfig
impl Sync for PythonConfig
impl Unpin for PythonConfig
impl UnwindSafe for PythonConfig
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>,