pub struct PythonExecutable { /* private fields */ }
Expand description
The path to an existing (likely) python
executable.
Implementations§
Source§impl PythonExecutable
impl PythonExecutable
Sourcepub fn new(path: PathBuf) -> Result<Self, (PyenvPythonExecutableError, PathBuf)>
pub fn new(path: PathBuf) -> Result<Self, (PyenvPythonExecutableError, PathBuf)>
Check that the python
path actually points to an executable
(can’t verify that it’s actually Python, but it’s at least an executable named python
).
See PyenvPythonExecutableError
for possible errors.
pub fn current() -> Result<Self>
Trait Implementations§
Source§impl Debug for PythonExecutable
impl Debug for PythonExecutable
Source§impl Display for PythonExecutable
impl Display for PythonExecutable
Source§impl HasPython for PythonExecutable
impl HasPython for PythonExecutable
fn python(&self) -> &PythonExecutable
fn into_python(self) -> PythonExecutable
Source§impl PartialEq for PythonExecutable
impl PartialEq for PythonExecutable
impl Eq for PythonExecutable
Auto Trait Implementations§
impl Freeze for PythonExecutable
impl RefUnwindSafe for PythonExecutable
impl Send for PythonExecutable
impl Sync for PythonExecutable
impl Unpin for PythonExecutable
impl UnwindSafe for PythonExecutable
Blanket Implementations§
Source§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more