Struct python3_config::PythonConfig[][src]

pub struct PythonConfig { /* fields omitted */ }

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]

impl Debug for PythonConfig[src]

impl FromStr for PythonConfig[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.