#[repr(i32)]pub enum InterpreterWhence {
Unknown = 0,
Runtime = 1,
LegacyCapi = 2,
Capi = 3,
Xi = 4,
Stdlib = 5,
}Expand description
Where an interpreter state came from (mirrors CPython _PyInterpreterState_GetWhence).
Variants§
Unknown = 0
Unknown / not recorded.
Runtime = 1
Created as the process main interpreter at runtime init.
LegacyCapi = 2
Legacy C-API creation path (reserved for C-API parity).
Capi = 3
Modern C-API creation path (reserved for C-API parity).
Xi = 4
Cross-interpreter C-API (reserved).
Stdlib = 5
Created via the stdlib / Rust subinterpreter API (PEP 734).
Implementations§
Trait Implementations§
Source§impl Clone for InterpreterWhence
impl Clone for InterpreterWhence
impl Copy for InterpreterWhence
Source§impl Debug for InterpreterWhence
impl Debug for InterpreterWhence
impl Eq for InterpreterWhence
Source§impl Hash for InterpreterWhence
impl Hash for InterpreterWhence
Source§impl PartialEq for InterpreterWhence
impl PartialEq for InterpreterWhence
impl StructuralPartialEq for InterpreterWhence
Auto Trait Implementations§
impl Freeze for InterpreterWhence
impl RefUnwindSafe for InterpreterWhence
impl Send for InterpreterWhence
impl Sync for InterpreterWhence
impl Unpin for InterpreterWhence
impl UnsafeUnpin for InterpreterWhence
impl UnwindSafe for InterpreterWhence
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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