pub enum ExecutionResult {
Return(PyObjectRef),
Yield(PyObjectRef),
TailCall,
GenResume,
}Variants§
Return(PyObjectRef)
Yield(PyObjectRef)
TailCall
The bytecode loop wants to tail-call into a new frame that has
already been prepared on the datastack. The trampoline reads the
pending frame pointer from vm.pending_tailcall_frame.
GenResume
The bytecode loop wants a generator or coroutine resumed in this same
eval loop rather than through a nested Coro::send. The trampoline
reads which one, the value to send it, and the continuation below
from vm.pending_gen_resume.
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionResult
impl !Send for ExecutionResult
impl !Sync for ExecutionResult
impl !UnwindSafe for ExecutionResult
impl Freeze for ExecutionResult
impl Unpin for ExecutionResult
impl UnsafeUnpin for ExecutionResult
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
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