pub enum PythonInterpreterProfile {
Isolated,
Python,
}
Expand description
Defines the profile to use to configure a Python interpreter.
This effectively provides a template for seeding the initial values of
PyPreConfig
and PyConfig
C structs.
Serialization type: string
.
Variants§
Isolated
Python is isolated from the system.
See https://docs.python.org/3/c-api/init_config.html#isolated-configuration.
Serialized value: isolated
Python
Python interpreter behaves like python
.
See https://docs.python.org/3/c-api/init_config.html#python-configuration.
Serialized value: python
Trait Implementations§
Source§impl Clone for PythonInterpreterProfile
impl Clone for PythonInterpreterProfile
Source§fn clone(&self) -> PythonInterpreterProfile
fn clone(&self) -> PythonInterpreterProfile
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PythonInterpreterProfile
impl Debug for PythonInterpreterProfile
Source§impl Default for PythonInterpreterProfile
impl Default for PythonInterpreterProfile
Source§impl From<PythonInterpreterProfile> for String
impl From<PythonInterpreterProfile> for String
Source§fn from(v: PythonInterpreterProfile) -> Self
fn from(v: PythonInterpreterProfile) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PythonInterpreterProfile
impl PartialEq for PythonInterpreterProfile
Source§impl ToString for PythonInterpreterProfile
impl ToString for PythonInterpreterProfile
Source§impl TryFrom<&str> for PythonInterpreterProfile
impl TryFrom<&str> for PythonInterpreterProfile
Source§impl TryFrom<String> for PythonInterpreterProfile
impl TryFrom<String> for PythonInterpreterProfile
impl Copy for PythonInterpreterProfile
impl Eq for PythonInterpreterProfile
impl StructuralPartialEq for PythonInterpreterProfile
Auto Trait Implementations§
impl Freeze for PythonInterpreterProfile
impl RefUnwindSafe for PythonInterpreterProfile
impl Send for PythonInterpreterProfile
impl Sync for PythonInterpreterProfile
impl Unpin for PythonInterpreterProfile
impl UnwindSafe for PythonInterpreterProfile
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,
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