Enum PythonInterpreter
pub enum PythonInterpreter {
Ambient,
Prepared(PathBuf),
}Expand description
Selects the Python interpreter. Ambient preserves historical command
overrides, while Prepared is authoritative so a managed immutable
environment cannot be bypassed by process or provider configuration.
Variants§
Implementations§
§impl PythonInterpreter
impl PythonInterpreter
pub fn prepared(environment: &PreparedPythonEnvironment) -> PythonInterpreter
Trait Implementations§
§impl Clone for PythonInterpreter
impl Clone for PythonInterpreter
§fn clone(&self) -> PythonInterpreter
fn clone(&self) -> PythonInterpreter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PythonInterpreter
impl Debug for PythonInterpreter
§impl Default for PythonInterpreter
impl Default for PythonInterpreter
§fn default() -> PythonInterpreter
fn default() -> PythonInterpreter
Returns the “default value” for a type. Read more
§impl PartialEq for PythonInterpreter
impl PartialEq for PythonInterpreter
§fn eq(&self, other: &PythonInterpreter) -> bool
fn eq(&self, other: &PythonInterpreter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PythonInterpreter
impl StructuralPartialEq for PythonInterpreter
Auto Trait Implementations§
impl Freeze for PythonInterpreter
impl RefUnwindSafe for PythonInterpreter
impl Send for PythonInterpreter
impl Sync for PythonInterpreter
impl Unpin for PythonInterpreter
impl UnsafeUnpin for PythonInterpreter
impl UnwindSafe for PythonInterpreter
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more