Enum tailcall::trampoline::Next
source · pub enum Next<Input, Output> {
Recurse(Input),
Finish(Output),
}
Expand description
This is the output of the step function. It indicates to run what should happen next.
Variants§
Recurse(Input)
This variant indicates that the step function should be run again with the provided input.
Finish(Output)
This variant indicates that there are no more steps to be taken and the provided output should be returned.
Trait Implementations§
Auto Trait Implementations§
impl<Input, Output> RefUnwindSafe for Next<Input, Output>where
Input: RefUnwindSafe,
Output: RefUnwindSafe,
impl<Input, Output> Send for Next<Input, Output>
impl<Input, Output> Sync for Next<Input, Output>
impl<Input, Output> Unpin for Next<Input, Output>
impl<Input, Output> UnwindSafe for Next<Input, Output>where
Input: UnwindSafe,
Output: UnwindSafe,
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