Struct pyo3_pack::PythonInterpreter [−][src]
pub struct PythonInterpreter {
pub major: usize,
pub minor: usize,
pub has_u: bool,
pub executable: PathBuf,
}The location and version of an interpreter
Fields
major: usize
Python's major version
minor: usize
Python's minor version
has_u: bool
The abi; There are e.g. python2.7m and python2.7mu; Other abis are not supported.
See PEP 261 and PEP 393 for details
executable: PathBuf
Path to the python interpreter, e.g. /usr/bin/python3.6
Just the name of the binary in PATH does also work, e.g. python3.5
Methods
impl PythonInterpreter[src]
impl PythonInterpreterpub fn get_tag(&self) -> String[src]
pub fn get_tag(&self) -> StringReturns the supported python environment in the PEP 425 format: {python tag}-{abi tag}-{platform tag}
pub fn find_all(
python_versions: &[String]
) -> Result<Vec<PythonInterpreter>, Error>[src]
pub fn find_all(
python_versions: &[String]
) -> Result<Vec<PythonInterpreter>, Error>Checks which python version of a set of possible versions are avaible and determins whether they are m or mu
Trait Implementations
impl Debug for PythonInterpreter[src]
impl Debug for PythonInterpreterfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for PythonInterpreter[src]
impl Clone for PythonInterpreterfn clone(&self) -> PythonInterpreter[src]
fn clone(&self) -> PythonInterpreterReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Eq for PythonInterpreter[src]
impl Eq for PythonInterpreterimpl PartialEq for PythonInterpreter[src]
impl PartialEq for PythonInterpreterfn eq(&self, other: &PythonInterpreter) -> bool[src]
fn eq(&self, other: &PythonInterpreter) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PythonInterpreter) -> bool[src]
fn ne(&self, other: &PythonInterpreter) -> boolThis method tests for !=.
impl Display for PythonInterpreter[src]
impl Display for PythonInterpreterAuto Trait Implementations
impl Send for PythonInterpreter
impl Send for PythonInterpreterimpl Sync for PythonInterpreter
impl Sync for PythonInterpreter