[−][src]Enum python_packaging::interpreter::PythonRunMode
Defines Python code to run.
Variants
No-op.
Run a Python REPL.
Run a Python module as the main module.
Fields of Module
module: String
Evaluate Python code from a string.
Fields of Eval
code: String
Execute Python code in a file.
We define this as a CString because the underlying API wants a char* and we want the constructor of this type to worry about the type coercion.
Fields of File
path: PathBuf
Trait Implementations
impl Clone for PythonRunMode
[src]
fn clone(&self) -> PythonRunMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PythonRunMode
[src]
impl PartialEq<PythonRunMode> for PythonRunMode
[src]
fn eq(&self, other: &PythonRunMode) -> bool
[src]
fn ne(&self, other: &PythonRunMode) -> bool
[src]
impl StructuralPartialEq for PythonRunMode
[src]
impl ToString for PythonRunMode
[src]
impl<'_> TryFrom<&'_ str> for PythonRunMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonRunMode
impl Send for PythonRunMode
impl Sync for PythonRunMode
impl Unpin for PythonRunMode
impl UnwindSafe for PythonRunMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,