pub struct Pyenv { /* private fields */ }
Expand description
An existing pyenv
python
executable.
Implementations§
Source§impl Pyenv
impl Pyenv
Sourcepub fn new() -> Result<Self, PyenvError>
pub fn new() -> Result<Self, PyenvError>
Looks up the current pyenv
python
executable and version,
or returns which part could not be found.
See PyenvError
for possible errors.
Trait Implementations§
Source§impl HasPython for Pyenv
impl HasPython for Pyenv
fn python(&self) -> &PythonExecutable
fn into_python(self) -> PythonExecutable
Auto Trait Implementations§
impl Freeze for Pyenv
impl RefUnwindSafe for Pyenv
impl Send for Pyenv
impl Sync for Pyenv
impl Unpin for Pyenv
impl UnwindSafe for Pyenv
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