RunMode in rustpython - Rust
rustpython
Enum RunMode
Sourcepub enum RunMode {
Script(String),
Command(String),
Module(String),
InstallPip(InstallPipMode),
Repl,
}
Variants
Script(String )
Command(String )
Module(String )
InstallPip(InstallPipMode )
Repl
Auto Trait Implementations
impl Forget for RunMode
impl Freeze for RunMode
impl Move for RunMode
impl RefUnwindSafe for RunMode
impl Send for RunMode
impl Sync for RunMode
impl Unpin for RunMode
impl UnsafeUnpin for RunMode
impl UnwindSafe for RunMode
Blanket Implementations
Sourceimpl<T> Any for T where T: 'static + ?Sized ,
Sourcefn type_id (&self) -> TypeId
Gets theTypeId of self. Read more
Source impl<'a, T, E> AsTaggedExplicit <'a, E> for T where T: 'a,
Sourcefn explicit (self, class: Class , tag: u32 ) -> TaggedParser <'a, Explicit , Self, E>
Sourceimpl<'a, T, E> AsTaggedImplicit <'a, E> for T where T: 'a,
Sourcefn implicit ( self, class: Class , constructed: bool , tag: u32 , ) -> TaggedParser <'a, Implicit , Self, E>
Sourceimpl<T> Borrow <T> for T where T: ?Sized ,
Sourcefn borrow (&self) -> &T
Immutably borrows from an owned value. Read more Sourceimpl<T> BorrowMut <T> for T where T: ?Sized ,
Sourcefn borrow_mut (&mut self) -> &mut T
Mutably borrows from an owned value. Read more Sourceimpl<ST, DT> CastableFrom <ST, Initialized , Initialized > for DT where ST: ?Sized , DT: ?Sized ,
Sourceimpl<ST, DT> CastableFrom <ST, Uninit , Uninit > for DT where ST: ?Sized , DT: ?Sized ,
Sourceimpl<T> ErasedDestructor for T where T: 'static,
Sourceimpl<T, U> ExactFrom <T> for U where U: TryFrom <T>,
Sourcefn exact_from (value: T) -> U
Sourceimpl<T, U> ExactInto <U> for T where U: ExactFrom <T>,
Sourcefn exact_into (self) -> U
Sourceimpl<T> From <T> for T
Sourcefn from (t: T) -> T
Returns the argument unchanged.
Sourceimpl<T> Helper for T
Sourceimpl<T, U> ImaginaryInto <U> for T where U: ImaginaryFrom <T>,
Sourcefn imaginary_into (self) -> U
Sourceimpl<T, U> Into <U> for T where U: From <T>,
Sourcefn into (self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
impl<T> IntoEither for T
Sourcefn into_either (self, into_left: bool ) -> Either <Self, Self> ⓘ
Convertsself 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 more
Source fn into_either_with <F>(self, into_left: F) -> Either <Self, Self> ⓘ where F: FnOnce (&Self) -> bool ,
Convertsself 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
Source impl<T, U> OverflowingInto <U> for T where U: OverflowingFrom <T>,
Sourcefn overflowing_into (self) -> (U, bool )
Sourceimpl<T> PrimitiveIntRandomBounds for T
Sourceimpl<T> PrimitiveSignedRandomBounds for T
Sourceimpl<T> PyThreadingConstraint for T where T: Send + Sync ,
Sourceimpl<T> Read <Exclusive , BecauseExclusive > for T where T: ?Sized ,
Sourceimpl<T, U> RoundingInto <U> for T where U: RoundingFrom <T>,
Sourcefn rounding_into (self, rm: RoundingMode ) -> (U, Ordering )
Sourceimpl<T> Same for T
Sourcetype Output = T
Should always beSelf
Source