pub enum MultiStep<State, Output> {
Even(State),
Odd(State),
Done(Output),
}Expand description
A labeled trampoline step: tag identifies which “function” to run next.
Variants§
Auto Trait Implementations§
impl<State, Output> Freeze for MultiStep<State, Output>
impl<State, Output> RefUnwindSafe for MultiStep<State, Output>where
State: RefUnwindSafe,
Output: RefUnwindSafe,
impl<State, Output> Send for MultiStep<State, Output>
impl<State, Output> Sync for MultiStep<State, Output>
impl<State, Output> Unpin for MultiStep<State, Output>
impl<State, Output> UnsafeUnpin for MultiStep<State, Output>where
State: UnsafeUnpin,
Output: UnsafeUnpin,
impl<State, Output> UnwindSafe for MultiStep<State, Output>where
State: 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